aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-11 22:12:52 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-11 22:12:52 -0400
commit528a4c2bde37ca7d1ded38af31f4a482d492d894 (patch)
tree5eeb94b79896f748ea4833d25c82fe5c63284902 /src/commands
parent66b958cd1d38a8ba0d64ecd188bc8d90e850cfbb (diff)
downloadtanzanite-528a4c2bde37ca7d1ded38af31f4a482d492d894.tar.gz
tanzanite-528a4c2bde37ca7d1ded38af31f4a482d492d894.tar.bz2
tanzanite-528a4c2bde37ca7d1ded38af31f4a482d492d894.zip
fix(some): stuff
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/config/prefix.ts2
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(