Skip to content

Commit

Permalink
ThreadedReply: update how replies are checked. (#119)
Browse files Browse the repository at this point in the history
ThreadReminder: change how replies are checked
  • Loading branch information
IsaacG authored Feb 17, 2025
1 parent 09ab796 commit 15983a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/threads_please.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
class ThreadReminder(base_cog.BaseCog):
"""Reminds people using "reply to" to use threads."""

qualified_name = TITLE
qualified_name = "ThreadReminder"

def __init__(
self,
Expand All @@ -44,7 +44,7 @@ def __init__(
async def on_message(self, message: discord.Message) -> None:
"""React to non-threaded responses with a reminder."""
channel = message.channel
if message.author.bot or message.reference is None:
if message.author.bot or message.type != discord.MessageType.reply:
return
if channel is None or channel.type != discord.ChannelType.text:
return
Expand Down
1 change: 1 addition & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"PinnedMessage",
"RequestNotifier",
"StreamingEvents",
"ThreadReminder",
"TrackReact",
]

Expand Down

0 comments on commit 15983a8

Please sign in to comment.