Struct commodore::Response
[−]
[src]
pub struct Response { pub text: Option<String>, pub response_type: String, pub attachments: Vec<Attachment>, }
A payload to reply to commands with
Fields
text: Option<String>
response_type: String
attachments: Vec<Attachment>
Methods
impl Response
[src]
fn ephemeral<T>(text: T) -> Self where
T: Into<String>,
T: Into<String>,
returned a response which will displayed for the user that issued the command for formatting rules see this doc
fn in_channel<T>(text: T) -> Self where
T: Into<String>,
T: Into<String>,
return a response which will be displayed for anyone in the channel for formatting rules see this doc
fn builder() -> ResponseBuilder
returns a builder interfaces for constructing instances of responses