mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Fix bug with Message.role_mentions always being empty.
This commit is contained in:
parent
e10cae5dbc
commit
c8250d7cd5
@ -218,7 +218,7 @@ class Message:
|
||||
def _handle_mention_roles(self, role_mentions):
|
||||
self.role_mentions = []
|
||||
if self.guild is not None:
|
||||
for role_id in role_mentions:
|
||||
for role_id in map(int, role_mentions):
|
||||
role = utils.get(self.guild.roles, id=role_id)
|
||||
if role is not None:
|
||||
self.role_mentions.append(role)
|
||||
|
Loading…
x
Reference in New Issue
Block a user