Interface ISnowflake

All Known Subinterfaces:
ApplicationInfo, ApplicationTeam, AudioChannel, ButtonInteraction, Category, Channel, ChannelUnion, Command, CommandAutoCompleteInteraction, CommandInteraction, CommandInteractionPayload, ComponentInteraction, ContextInteraction<T>, CustomEmoji, DefaultGuildChannelUnion, Guild, GuildChannel, GuildChannelUnion, GuildMessageChannel, GuildMessageChannelUnion, GuildSticker, GuildVoiceState, IAgeRestrictedChannel, IAutoCompleteCallback, ICategorizableChannel, ICopyableChannel, IDeferrableCallback, IInviteContainer, IMemberContainer, IMentionable, IMessageEditCallback, IModalCallback, Interaction, Invite.Channel, Invite.EmbeddedApplication, Invite.Group, Invite.Guild, IPermissionContainer, IPermissionContainerUnion, IPermissionHolder, IPositionableChannel, IReplyCallback, IThreadContainer, IThreadContainerUnion, IWebhookContainer, IWebhookContainerUnion, Member, Message, MessageChannel, MessageChannelUnion, MessageContextInteraction, ModalInteraction, NewsChannel, PermissionOverride, PrivateChannel, RichCustomEmoji, RichSticker, Role, SelectMenuInteraction, SelfUser, SlashCommandInteraction, StageChannel, StageInstance, StandardGuildChannel, StandardGuildMessageChannel, StandardSticker, Sticker, StickerItem, StickerPack, StickerSnowflake, StickerUnion, TextChannel, ThreadChannel, ThreadMember, User, UserContextInteraction, UserSnowflake, VoiceChannel, Webhook
All Known Implementing Classes:
AttachmentUpdate, AuditLogEntry, ButtonInteractionEvent, CommandAutoCompleteInteractionEvent, GenericAutoCompleteInteractionEvent, GenericCommandInteractionEvent, GenericComponentInteractionCreateEvent, GenericContextInteractionEvent, GenericInteractionCreateEvent, IntegrationPrivilege, Message.Attachment, Message.Interaction, MessageActivity.Application, MessageContextInteractionEvent, ModalInteractionEvent, SelectMenuInteractionEvent, SlashCommandInteractionEvent, TemplateChannel, TemplateChannel.PermissionOverride, TemplateGuild, TemplateRole, UserContextInteractionEvent, Webhook.ChannelReference, Webhook.GuildReference, Webhook.WebhookReference, WidgetUtil.Widget, WidgetUtil.Widget.Member, WidgetUtil.Widget.VoiceChannel

public interface ISnowflake
Marks a snowflake entity. Snowflake entities are ones that have an id that uniquely identifies them.
Since:
3.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    The Snowflake id of this entity.
    long
    The Snowflake id of this entity.
    The time this entity was created.
  • Method Details

    • getId

      @Nonnull default String getId()
      The Snowflake id of this entity. This is unique to every entity and will never change.
      Returns:
      Never-null String containing the Id.
    • getIdLong

      long getIdLong()
      The Snowflake id of this entity. This is unique to every entity and will never change.
      Returns:
      Long containing the Id.
    • getTimeCreated

      @Nonnull default OffsetDateTime getTimeCreated()
      The time this entity was created. Calculated through the Snowflake in getIdLong().
      Returns:
      OffsetDateTime - Time this entity was created at.
      See Also: