mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 10:10:12 +00:00
fix(gateway): set custom prefix in bot status
This commit is contained in:
parent
e573e978da
commit
eb9994b215
3 changed files with 25 additions and 3 deletions
|
|
@ -12,10 +12,16 @@ pub struct ClusterSettings {
|
|||
pub total_nodes: u32,
|
||||
}
|
||||
|
||||
fn _default_bot_prefix() -> String {
|
||||
"pk;".to_string()
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
pub struct DiscordConfig {
|
||||
pub client_id: Id<UserMarker>,
|
||||
pub bot_token: String,
|
||||
#[serde(default = "_default_bot_prefix")]
|
||||
pub bot_prefix_for_gateway: String,
|
||||
pub client_secret: String,
|
||||
pub max_concurrency: u32,
|
||||
#[serde(default)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue