Passing guildID as string to allow dict to update

pull/8/head
sgoudham 4 years ago
parent 2a503a6cdd
commit b4af7a1d3f

@ -19,7 +19,7 @@ cached_prefixes = {}
async def storage_prefix_for_guild(ctx, prefix): async def storage_prefix_for_guild(ctx, prefix):
cached_prefixes[ctx.guild.id] = prefix cached_prefixes[str(ctx.guild.id)] = prefix
with db.connection() as connection: with db.connection() as connection:
# Update the existing prefix within the database # Update the existing prefix within the database

Loading…
Cancel
Save