Interface Entity

All Superinterfaces:
DiscordObject
All Known Subinterfaces:
AudioChannel, CategorizableChannel, Channel, GuildChannel, GuildMessageChannel, MessageChannel, TopLevelGuildChannel, TopLevelGuildMessageChannel
All Known Implementing Classes:
ApplicationInfo, ApplicationTeam, Attachment, AuditLogEntry, AutoModRule, Category, ForumChannel, ForumTag, Guild, GuildEmoji, GuildSticker, Integration, IntegrationApplication, Member, Message, NewsChannel, PartialMember, PartialSticker, PrivateChannel, Role, ScheduledEvent, StageChannel, StageInstance, Sticker, StoreChannel, TextChannel, ThreadChannel, UnknownChannel, User, VoiceChannel, Webhook

public interface Entity extends DiscordObject
An uniquely identifiable object by Snowflake.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the Snowflake that uniquely identifies this entity.

    Methods inherited from interface discord4j.core.object.DiscordObject

    getClient
  • Method Details

    • getId

      Snowflake getId()
      Gets the Snowflake that uniquely identifies this entity.
      Returns:
      The Snowflake that uniquely identifies this entity.