mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Added a missing "to" in Message.raw_mentions documentation.
This commit is contained in:
parent
0f56ce7c13
commit
b268d81649
@ -315,7 +315,7 @@ class Message:
|
|||||||
"""A property that returns an array of user IDs matched with
|
"""A property that returns an array of user IDs matched with
|
||||||
the syntax of <@user_id> in the message content.
|
the syntax of <@user_id> in the message content.
|
||||||
|
|
||||||
This allows you receive the user IDs of mentioned users
|
This allows you to receive the user IDs of mentioned users
|
||||||
even in a private message context.
|
even in a private message context.
|
||||||
"""
|
"""
|
||||||
return [int(x) for x in re.findall(r'<@!?([0-9]+)>', self.content)]
|
return [int(x) for x in re.findall(r'<@!?([0-9]+)>', self.content)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user