Skip to content

Commit

Permalink
fix: discord bot not accepting DMs
Browse files Browse the repository at this point in the history
  • Loading branch information
e-zhang09 committed Jan 31, 2024
1 parent b024bf9 commit d9d1aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/discordbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ async def on_message(self, message):
if content == "!ani":
await ani_shuffle.init(self, channel, author)

if channel == author.dm_channel:
if channel.type == discord.ChannelType.private:
if content.startswith("!verify"):
if len(content.split()) > 1:
arg = content.split()[1]
Expand Down

0 comments on commit d9d1aaa

Please sign in to comment.