mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-02 22:47:41 +01:00
Add InteractionMember#getAsMention
This commit is contained in:
parent
e0d6040662
commit
a7f4d6b16b
@ -27,6 +27,12 @@ public interface InteractionMember {
|
||||
return getName() + "#" + getDiscriminator();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the discord mention of this member.
|
||||
* @return this member's mention.
|
||||
*/
|
||||
String getAsMention();
|
||||
|
||||
/**
|
||||
* Gets the nickname of this member or their username if they don't have one.
|
||||
* @return this member's nickname or username if none is present.
|
||||
|
@ -26,6 +26,11 @@ public class InteractionMemberImpl implements InteractionMember {
|
||||
return member.getUser().getDiscriminator();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAsMention() {
|
||||
return member.getAsMention();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getEffectiveName() {
|
||||
return member.getEffectiveName();
|
||||
|
Loading…
Reference in New Issue
Block a user