Struct tbot::methods::DeleteMyCommands
source · pub struct DeleteMyCommands<'a> { /* private fields */ }
Expand description
Deletes the list of the bot’s commands.
Represents the deleteMyCommands
method.
Implementations§
source§impl<'a> DeleteMyCommands<'a>
impl<'a> DeleteMyCommands<'a>
sourcepub fn scope(self, scope: Scope) -> Self
pub fn scope(self, scope: Scope) -> Self
Configures the scope of the dedicated command list that you want to
delete. Reflects the scope
parameter.
sourcepub fn language_code(self, language_code: impl Into<String>) -> Self
pub fn language_code(self, language_code: impl Into<String>) -> Self
Configures the langauge of the dedicated command that you want to
delete. Reflects the language_code
parameter.
source§impl DeleteMyCommands<'_>
impl DeleteMyCommands<'_>
sourcepub async fn call(self) -> Result<(), MethodCall>
pub async fn call(self) -> Result<(), MethodCall>
Calls the method.
Trait Implementations§
source§impl<'a> Clone for DeleteMyCommands<'a>
impl<'a> Clone for DeleteMyCommands<'a>
source§fn clone(&self) -> DeleteMyCommands<'a>
fn clone(&self) -> DeleteMyCommands<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more