Struct tbot::methods::SetMessageGameScore
source · pub struct SetMessageGameScore<'a> { /* private fields */ }
Expand description
Sets a user’s new high score in a game sent by the bot itself.
Reflects the setGameScore
method.
Implementations§
source§impl<'a> SetMessageGameScore<'a>
impl<'a> SetMessageGameScore<'a>
sourcepub const fn is_forced(self, is_forced: bool) -> Self
pub const fn is_forced(self, is_forced: bool) -> Self
Configures whether the score may go down. Reflects the force
parameter.
sourcepub const fn is_editing_message_disabled(self, is_disabled: bool) -> Self
pub const fn is_editing_message_disabled(self, is_disabled: bool) -> Self
Configures whether the message should not be edited immediately.
Reflects the disable_edit_message
parameter.
source§impl SetMessageGameScore<'_>
impl SetMessageGameScore<'_>
sourcepub async fn call(self) -> Result<Message, MethodCall>
pub async fn call(self) -> Result<Message, MethodCall>
Calls the method.
Trait Implementations§
source§impl<'a> Clone for SetMessageGameScore<'a>
impl<'a> Clone for SetMessageGameScore<'a>
source§fn clone(&self) -> SetMessageGameScore<'a>
fn clone(&self) -> SetMessageGameScore<'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