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
impl RefUnwindSafe for Settings
impl UnwindSafe for Settings