mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
hotfix
This commit is contained in:
1 parent
e966b6ce20
commit
db0ca569ee
9 files changed
+426
-42
No files matched your search
@@ -217,8 +217,13 @@ export class Flag extends Option {
|
||||
export class PrefixManager {
|
||||
/** @type {SettingsManager} */
|
||||
settings;
|
||||
constructor(settings) { this.settings = settings; }
|
||||
getPrefix(guildId) { return this.settings.getServer(guildId).get("prefix"); }
|
||||
/** @type {string|null} Prefix from config.json — used as fallback when DB has no value */
|
||||
configPrefix;
|
||||
constructor(settings, configPrefix = null) { this.settings = settings; this.configPrefix = configPrefix; }
|
||||
getPrefix(guildId) {
|
||||
const serverPrefix = this.settings.getServer(guildId).get("prefix");
|
||||
return serverPrefix ?? this.configPrefix ?? "%";
|
||||
}
|
||||
}
|
||||
|
||||
export class HelpHandler {
|
||||
|
||||
Reference in new issue
Block a user