pub struct DiscordConfig {
pub bot_token: String,
pub application_id: String,
pub default_channel_id: Option<String>,
pub command_prefix: String,
}Expand description
Discord bot configuration.
Fields§
§bot_token: StringBot token from Discord Developer Portal.
application_id: StringApplication ID for slash command registration.
default_channel_id: Option<String>Default channel ID for notifications.
command_prefix: StringCommand prefix for text commands (default: “!”).
Implementations§
Trait Implementations§
Source§impl Clone for DiscordConfig
impl Clone for DiscordConfig
Source§fn clone(&self) -> DiscordConfig
fn clone(&self) -> DiscordConfig
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DiscordConfig
impl RefUnwindSafe for DiscordConfig
impl Send for DiscordConfig
impl Sync for DiscordConfig
impl Unpin for DiscordConfig
impl UnsafeUnpin for DiscordConfig
impl UnwindSafe for DiscordConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more