Skip to content

Commit fae05a5

Browse files
committed
Fix custom emojis not working in confirm thread creation
1 parent 92f5c8e commit fae05a5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ however, insignificant breaking changes do not guarantee a major version bump, s
1616
- Permission levels were not respected
1717
- `perms remove` was not working
1818
- `logs` and `block` would not recognise users in a seperate server setup.
19+
- Custom emojis were not working with `confirm_thread_creation`
1920

2021
### Internal
2122
- Optimised `perms get`, bot should respond faster now

core/thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ async def create(
11821182
check=lambda r, u: u.id == message.author.id
11831183
and r.message.id == confirm.id
11841184
and r.message.channel.id == confirm.channel.id
1185-
and r.emoji in (accept_emoji, deny_emoji),
1185+
and str(r.emoji) in (accept_emoji, deny_emoji),
11861186
timeout=20,
11871187
)
11881188
except asyncio.TimeoutError:

0 commit comments

Comments
 (0)