$mentioned

Returns the ID of the mentioned user.

Syntax

$mentioned[Mention number;(Return author?)]

Parameters

  • Mention number (Type: HowMany || Flag: Required): The user-mention to get from the author’s message (1 = first user-mention, 2 = second, etc).
  • Return author? (Type: Bool || Flag: Optional): Whether to return the author’s ID if no user is mentioned or not. Default is yes.

Example

$nomention
$mentioned[1;no]
!example Master Bot User ID: 566613317972394004 !example Menhera Bread User ID: 177535709731749890 !example text User ID:

Example

Using $mentioned[1] (which is the same as $mentioned[1;yes]) will return your ID instead of an empty value.