Class MentionUtil
java.lang.Object
de.chojo.jdautil.util.MentionUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringchannel(long id) Get a mention of a channelstatic Stringmember(long id) Get a mention of a member.static StringGet a mention of an id with an decoratorstatic Stringrole(long id) Get a mention of a rolestatic Stringuser(long id) Get a mention for a user.
-
Field Details
-
USER_DECORATOR
- See Also:
-
MEMBER_DECORATOR
- See Also:
-
CHANNEL_DECORATOR
- See Also:
-
ROLE_DECORATOR
- See Also:
-
-
Method Details
-
user
Get a mention for a user.- Parameters:
id- id of user- Returns:
- user mention
-
member
Get a mention of a member.- Parameters:
id- id of member- Returns:
- member mention
-
channel
Get a mention of a channel- Parameters:
id- id of channel- Returns:
- channel mention
-
role
Get a mention of a role- Parameters:
id- id of role- Returns:
- role mention
-
mention
-