aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Izan <[email protected]>2022-02-17 11:29:24 +0000
committerGravatar Izan <[email protected]>2022-02-17 11:29:24 +0000
commit71100240a6023cad4f35c36751c4c44e18f7f2d7 (patch)
treefc643afcca54ded88af4e220369a42e70d76e096
parentAllow duckifying of messages in threads (diff)
Use `discord.Guild.get_channel_or_thread()` instead of `discord.utils.get()`
-rw-r--r--bot/exts/fun/duck_pond.py2
1 files changed, 1 insertions, 1 deletions
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