Class MentionUtil
-
Field Summary
-
Method Summary
-
Field Details
-
EVERYONE
The raw mention for notifying all users in a channel.The use of this mention requires the
Permission.MENTION_EVERYONE
permission, as well as being permitted by the "allowed mentions" of any messages being sent. -
HERE
The raw mention for notifying all online users in a channel.The use of this mention requires the
Permission.MENTION_EVERYONE
permission, as well as being permitted by the "allowed mentions" of any messages being sent.
-
-
Method Details
-
forChannel
Gets a raw mention for aChannel
.This is the format utilized to directly mention another channel.
- Parameters:
id
- The id of the channel to mention.- Returns:
- The raw mention.
-
forRole
Gets a raw mention for aRole
.The use of this mention requires being permitted by the "allowed mentions" of any messages being sent.
This is the format utilized to directly mention another role (assuming the role exists in context of the mention).
- Parameters:
id
- The id of the role to mention.- Returns:
- The raw mention.
-
forUser
Gets a raw mention for aUser
.The use of this mention requires being permitted by the "allowed mentions" of any messages being sent.
This is the format utilized to directly mention another user (assuming the user exists in context of the mention).
- Parameters:
id
- The id of the user to mention.- Returns:
- The raw mention.
-