Skip to content

Commit e31b07d

Browse files
committed
Fix custom emojis in confirm_thread_creation_deny, resolves #2916
1 parent b338121 commit e31b07d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ however, insignificant breaking changes do not guarantee a major version bump, s
2828
- Level permissions were not checked if command permissions were set.
2929
- Regex autotriggers were not working if term was in the middle of strings.
3030
- `?blocked` now no longers show blocks that have expired.
31-
- Blocked roles will no longer trigger an error during unblock
31+
- Blocked roles will no longer trigger an error during unblock.
32+
- Custom emojis are now supported in `confirm_thread_creation_deny`. ([GH #2916](https://github.com/kyb3r/modmail/issues/2916))
3233

3334
### Internal
3435

core/thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ async def create(
12011201
del self.cache[recipient.id]
12021202
return thread
12031203
else:
1204-
if r.emoji == deny_emoji:
1204+
if str(r.emoji) == deny_emoji:
12051205
thread.cancelled = True
12061206

12071207
await confirm.remove_reaction(accept_emoji, self.bot.user)

0 commit comments

Comments
 (0)