pub struct SlashCommandBody {Show 15 fields
pub token: String,
pub command: String,
pub text: String,
pub response_url: String,
pub trigger_id: String,
pub user_id: String,
pub user_name: String,
pub team_id: String,
pub team_domain: String,
pub enterprise_id: Option<String>,
pub enterprise_name: Option<String>,
pub channel_id: String,
pub channel_name: String,
pub api_app_id: String,
pub is_enterprise_install: bool,
}Expand description
The type that represents a request of a slash command.
https://api.slack.com/interactivity/slash-commands#app_command_handling
Fields§
§token: String(Deprecated) This is a verification token, a deprecated feature that you shouldn’t use any more.
command: StringThe command that was entered to trigger this request.
text: StringThis is the part of the slash command after the command itself, and it can contain absolutely anything the user might decide to type.
response_url: StringA temporary webhook URL that you can use to generate message responses.
trigger_id: StringA short-lived ID that will allow your app to open a modal.
user_id: StringThe ID of the user who triggered the command.
user_name: String(Deprecated) The plain text name of the user who triggered the command.
team_id: StringThese IDs provide context about where the user was in Slack when they triggered your app’s command (e.g. the workspace, Enterprise Grid, or channel).
team_domain: String(Deprecated)
enterprise_id: Option<String>These IDs provide context about where the user was in Slack when they triggered your app’s command (e.g. the workspace, Enterprise Grid, or channel).
enterprise_name: Option<String>(Deprecated)
channel_id: StringThese IDs provide context about where the user was in Slack when they triggered your app’s command (e.g. the workspace, Enterprise Grid, or channel).
channel_name: String(Deprecated)
api_app_id: StringYour Slack app’s unique identifier.
is_enterprise_install: boolis_enterprise_install
Trait Implementations§
Source§impl Clone for SlashCommandBody
impl Clone for SlashCommandBody
Source§fn clone(&self) -> SlashCommandBody
fn clone(&self) -> SlashCommandBody
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more