From 71100240a6023cad4f35c36751c4c44e18f7f2d7 Mon Sep 17 00:00:00 2001 From: Izan Date: Thu, 17 Feb 2022 11:29:24 +0000 Subject: Use `discord.Guild.get_channel_or_thread()` instead of `discord.utils.get()` --- bot/exts/fun/duck_pond.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/fun/duck_pond.py b/bot/exts/fun/duck_pond.py index 8968c766d..8baa53026 100644 --- a/bot/exts/fun/duck_pond.py +++ b/bot/exts/fun/duck_pond.py @@ -171,7 +171,7 @@ class DuckPond(Cog): await self.bot.wait_until_guild_available() guild = self.bot.get_guild(payload.guild_id) - channel = discord.utils.get(guild.text_channels + guild.threads, id=payload.channel_id) + channel = guild.get_channel_or_thread(payload.channel_id) if channel is None: return -- cgit v1.2.3