From 0fc3ccc5183e6a230dd115b9780483b7315558dd Mon Sep 17 00:00:00 2001 From: Dan Hess Date: Fri, 27 Dec 2019 08:26:18 -0600 Subject: [PATCH] Pass the guild object --- cogs/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/admin.py b/cogs/admin.py index 9262230..7b89d5f 100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -366,7 +366,7 @@ WHERE destination=$2 AND from_to=$3 AND guild=$4""", source, destination, arg2, ctx.guild.id) - ctx.bot.cache.remove_restriction(ctx.guild.id, arg2, {"source": source, "destination": destination}) + ctx.bot.cache.remove_restriction(ctx.guild, arg2, {"source": source, "destination": destination}) # If this isn't a blacklist/whitelist, then we are attempting to remove an overwrite else: