Struct twilight_http::request::application::command::create_guild_command::CreateGuildMessageCommand [−][src]
pub struct CreateGuildMessageCommand<'a> { /* fields omitted */ }Expand description
Create a message command in a guild.
Creating a guild command with the same name as an already-existing guild command in the same guild will overwrite the old command. See the discord docs for more information.
Implementations
Whether the command is enabled by default when the app is added to a guild.
pub fn exec(self) -> ResponseFuture<Command>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<Command>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
Notable traits for ResponseFuture<T>
impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;Execute the request, returning a future resolving to a Response.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for CreateGuildMessageCommand<'a>
impl<'a> Send for CreateGuildMessageCommand<'a>
impl<'a> Sync for CreateGuildMessageCommand<'a>
impl<'a> Unpin for CreateGuildMessageCommand<'a>
impl<'a> !UnwindSafe for CreateGuildMessageCommand<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more