Struct uwubot::Bot[][src]

pub struct Bot { /* fields omitted */ }

The bot, the myth, the legend, uwubot

Implementations

impl Bot[src]

pub fn new<T>(config: T) -> Self where
    Config: From<T>, 
[src]

Construct an uwubot given a config type that can be converted into uwubot::Config.

pub async fn run(&self) -> Result<()>[src]

Run uwubot.

pub async fn register_slash_commands_guild(
    &self,
    guild_id: GuildId
) -> Result<()>
[src]

Register a slash command for a given Guild.

pub async fn list_slash_commands_guild(&self, guild_id: GuildId) -> Result<()>[src]

List all slash commands for a given Guild.

pub async fn delete_slash_commands_guild(
    &self,
    guild_id: GuildId,
    command_id: u64
) -> Result<()>
[src]

Delete a slash command for a given Guild.

pub async fn register_slash_commands_global(&self) -> Result<()>[src]

Register a slash command globally for all guilds.

Details

Global commands are cached with a 1 hour update interval, it is recommended that you use register_slash_commands_guild when testing.

Auto Trait Implementations

impl RefUnwindSafe for Bot

impl Send for Bot

impl Sync for Bot

impl Unpin for Bot

impl UnwindSafe for Bot

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<D> OwoColorize for D[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,