Skip to content

Commit dc697a2

Browse files
committed
Fixed pin accuracy
1 parent 892bbf0 commit dc697a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cogs/help/pin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async def react_to_pin(self, reaction):
3131
async def message_pin(self, msg):
3232
if isinstance(msg.channel, discord.Thread) and msg.channel.parent_id in (HELP_FORUM_ID, CREATIONS_FORUM_ID) \
3333
and (msg.author == msg.channel.owner or msg.author.guild_permissions.manage_messages):
34-
if validate(msg.content, valid_pin):
34+
if validate(msg.content, valid_pin, 3):
3535
try:
3636
replied_msg = await msg.channel.fetch_message(msg.reference.message_id)
3737
if replied_msg.pinned:

0 commit comments

Comments
 (0)