From 0cc435c1e56260271bb6ff27fddd8d6971837feb Mon Sep 17 00:00:00 2001 From: Matteo Bertucci Date: Fri, 8 Oct 2021 07:58:23 +0200 Subject: Candy collection: fix positional arg being passed as kword This caused a `TypeError` to be raised, as the `id` argument could only be used as a positional argument and not by keyword. --- bot/exts/holidays/halloween/candy_collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot') diff --git a/bot/exts/holidays/halloween/candy_collection.py b/bot/exts/holidays/halloween/candy_collection.py index 4afd5913..09bd0e59 100644 --- a/bot/exts/holidays/halloween/candy_collection.py +++ b/bot/exts/holidays/halloween/candy_collection.py @@ -134,7 +134,7 @@ class CandyCollection(commands.Cog): @property def hacktober_channel(self) -> discord.TextChannel: """Get #hacktoberbot channel from its ID.""" - return self.bot.get_channel(id=Channels.community_bot_commands) + return self.bot.get_channel(Channels.community_bot_commands) @staticmethod async def send_spook_msg( -- cgit v1.2.3