1
0
Fork 0
mirror of synced 2024-06-29 03:30:57 +12:00

Added missing awaits

This commit is contained in:
phxntxm 2016-08-31 14:15:38 -05:00
parent 0f21cf5155
commit 181fbec47e

View file

@ -259,9 +259,9 @@ class Mod:
@checks.custom_perms(manage_server=True)
async def prefix(self, ctx, *, prefix: str):
"""This command can be used to set a custom prefix per server"""
prefixes = config.get_content('prefix')
prefixes = await config.get_content('prefix')
prefixes[ctx.message.server.id] = prefix
config.save_content('prefixes', prefixes)
await config.save_content('prefixes', prefixes)
await self.bot.say(
"I have just updated the prefix for this server; you now need to call commands with `{}`".format(prefix))