diff options
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/config/prefix.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/config/prefix.ts b/src/commands/config/prefix.ts index 9be6ec4..c7a1a9f 100644 --- a/src/commands/config/prefix.ts +++ b/src/commands/config/prefix.ts @@ -36,7 +36,7 @@ export default class PrefixCommand extends BushCommand { } async exec(message: BushMessage | BushSlashMessage, args: { prefix?: string }): Promise<unknown> { - const oldPrefix = message.guild.getSetting('prefix'); + const oldPrefix = await message.guild.getSetting('prefix'); await message.guild.setSetting('prefix', args.prefix ?? this.client.config.prefix); if (args.prefix) { return await message.util.send( |