Struct tbot::methods::UnbanChatMember
source · pub struct UnbanChatMember<'a> { /* private fields */ }
Expand description
Lifts all restrictions from a group’s member.
Reflects the unbanChatMember
method.
Implementations§
source§impl<'a> UnbanChatMember<'a>
impl<'a> UnbanChatMember<'a>
sourcepub const fn only_if_banned(self, only_if_banned: bool) -> Self
pub const fn only_if_banned(self, only_if_banned: bool) -> Self
If true
, unban only if the user is banned.
Reflects the only_if_banned
parameter.
source§impl UnbanChatMember<'_>
impl UnbanChatMember<'_>
sourcepub async fn call(self) -> Result<(), MethodCall>
pub async fn call(self) -> Result<(), MethodCall>
Calls the method.
Trait Implementations§
source§impl<'a> Clone for UnbanChatMember<'a>
impl<'a> Clone for UnbanChatMember<'a>
source§fn clone(&self) -> UnbanChatMember<'a>
fn clone(&self) -> UnbanChatMember<'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