diff options
| author | 2022-02-17 11:29:24 +0000 | |
|---|---|---|
| committer | 2022-02-17 11:29:24 +0000 | |
| commit | 71100240a6023cad4f35c36751c4c44e18f7f2d7 (patch) | |
| tree | fc643afcca54ded88af4e220369a42e70d76e096 | |
| parent | Allow duckifying of messages in threads (diff) | |
Use `discord.Guild.get_channel_or_thread()` instead of `discord.utils.get()`
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/fun/duck_pond.py | 2 | 
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 | 
