Interface Mentionable

All Known Subinterfaces:
ApplicationOwner, InteractionMember, Member, NewsChannel, Role, StageChannel, TextChannel, ThreadChannel, User, VoiceChannel
All Known Implementing Classes:
ApplicationOwnerImpl, InteractionMemberImpl, MemberImpl, NewsChannelImpl, RoleImpl, StageChannelImpl, TextChannelImpl, ThreadChannelImpl, UserImpl, VoiceChannelImpl
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Mentionable
An entity that can be mentioned. Users, TextChannels, and Members are all examples of mentionable entities.
Since:
2/3/19.
Author:
Nik Ammerlaan
  • Method Summary

    Modifier and Type
    Method
    Description
     
  • Method Details

    • asMention

      @Nonnull @CheckReturnValue String asMention()
      Returns:
      A mention for this entity that can be sent in a message.