Struct slashy::settings::Settings[][src]

pub struct Settings {
    pub prefixes: Vec<&'static str>,
    pub auto_register: bool,
    pub auto_delete: bool,
    pub slash_command_guilds: Vec<GuildId>,
}
Expand description

Represents the settings for the framework

Fields

prefixes: Vec<&'static str>

The prefixes the bot uses

auto_register: bool

Whether to auto-register commands as slash commands on Ready.

auto_delete: bool

Whether to auto-delete unrecognized slash commands on Ready.

slash_command_guilds: Vec<GuildId>

Guilds to register slash commands to.

Registers all commands to these guilds regardles of auto_register.
Is useful for quick updates or if you have auto_register off.

Trait Implementations

The default prefixes the bot should fallback to.

The prefixes for a specific guild.

Whether we should auto-register.

Whether we should auto-delete non-existant commands.

Guilds to register commands to.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.