Struct tbot::methods::SetInlineGameScore
source · pub struct SetInlineGameScore<'a> { /* private fields */ }
Expand description
Sets a user’s new high score in a game sent via the inline mode.
Reflects the setGameScore
method.
Implementations§
source§impl<'a> SetInlineGameScore<'a>
impl<'a> SetInlineGameScore<'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 SetInlineGameScore<'_>
impl SetInlineGameScore<'_>
sourcepub async fn call(self) -> Result<(), MethodCall>
pub async fn call(self) -> Result<(), MethodCall>
Calls the method.
Trait Implementations§
source§impl<'a> Clone for SetInlineGameScore<'a>
impl<'a> Clone for SetInlineGameScore<'a>
source§fn clone(&self) -> SetInlineGameScore<'a>
fn clone(&self) -> SetInlineGameScore<'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