From b4af7a1d3f531305a03c722157d72a766b0634b7 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sun, 19 Jul 2020 08:19:18 +0100 Subject: [PATCH] Passing guildID as string to allow dict to update --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 6a1c3399..df87dea9 100644 --- a/main.py +++ b/main.py @@ -19,7 +19,7 @@ cached_prefixes = {} 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: # Update the existing prefix within the database