Struct tbot::methods::BanChatMember
source · pub struct BanChatMember<'a> { /* private fields */ }
Expand description
Bans a member in a chat.
Reflects the banChatMember
method.
Implementations§
source§impl<'a> BanChatMember<'a>
impl<'a> BanChatMember<'a>
sourcepub const fn until_date(self, date: i64) -> Self
pub const fn until_date(self, date: i64) -> Self
Configures when the user regains the ability to return to the chat.
Reflects the until_date
parameter.
sourcepub const fn revoke_messages(self) -> Self
pub const fn revoke_messages(self) -> Self
Configures whether the user will be able to see messages sent before
the user was kicked. Sets the revoke_messages
parameter to true
.
source§impl BanChatMember<'_>
impl BanChatMember<'_>
sourcepub async fn call(self) -> Result<(), MethodCall>
pub async fn call(self) -> Result<(), MethodCall>
Calls the method.
Trait Implementations§
source§impl<'a> Clone for BanChatMember<'a>
impl<'a> Clone for BanChatMember<'a>
source§fn clone(&self) -> BanChatMember<'a>
fn clone(&self) -> BanChatMember<'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