Interface Snowflake

All Superinterfaces:
Entity, Timestamped
All Known Subinterfaces:
ApplicationCommand, ApplicationCommandInteraction, ApplicationCommandInteractionData, ApplicationInfo, ApplicationOwner, AuditLogEntry, ButtonInteraction, Category, Channel, ChannelMention, DeletedMessage, DeletedThread, DMChannel, Emoji, Emoji.ActivityEmoji, Emoji.CustomEmoji, Emoji.UnicodeEmoji, GroupDMChannel, Guild, GuildChannel, Interaction<T>, InteractionMember, Invite.InviteChannel, Invite.InviteGuild, Invite.Inviter, Member, Message, Message.Attachment, MessageChannel, MessageEmbedUpdate, NewsChannel, PartialGuild, PartialMember, PartialRole, Permissable, PermissionOverride, PresenceUpdate, Role, SelectInteraction, StageChannel, Sticker, StoreChannel, Team, TextChannel, ThreadChannel, ThreadChannel.ThreadMember, ThreadMembersUpdate, TypingUser, UnavailableGuild, User, UserDMChannel, VoiceChannel, Webhook
All Known Implementing Classes:
ActivityEmojiImpl, ApplicationCommandImpl, ApplicationCommandInteractionDataImpl, ApplicationCommandInteractionImpl, ApplicationInfoImpl, ApplicationOwnerImpl, AttachmentImpl, AuditLogEntryImpl, ButtonInteractionImpl, CategoryImpl, ChannelMentionImpl, CustomEmojiImpl, DeletedMessageImpl, DeletedThreadImpl, GroupDMChannelImpl, GuildImpl, InteractionMemberImpl, InviteImpl.InviteChannelImpl, InviteImpl.InviteGuildImpl, InviteImpl.InviterImpl, MemberImpl, MessageEmbedUpdateImpl, MessageImpl, NewsChannelImpl, PartialGuildImpl, PartialMemberImpl, PartialRoleImpl, PermissionOverrideImpl, PresenceUpdateImpl, RoleImpl, SelectInteractionImpl, StageChannelImpl, StickerImpl, StoreChannelImpl, TeamImpl, TextChannelImpl, ThreadChannelImpl, ThreadChannelImpl.ThreadMemberImpl, ThreadMembersUpdateImpl, TypingUserImpl, UnavailableGuildImpl, UnicodeEmojiImpl, UserDMChannelImpl, UserImpl, VoiceChannelImpl, WebhookImpl

public interface Snowflake extends Entity, Timestamped
A subset of entities that have an ID attached.
Since:
5/9/18.
Author:
natanbc
  • Method Details

    • id

      @Nonnull @CheckReturnValue default String id()
      The ID of this snowflake.
      Returns:
      String representing the ID.
    • idAsLong

      @CheckReturnValue long idAsLong()
      The ID of this snowflake, as a long.
      Returns:
      Long representing the ID.
    • creationTime

      @Nonnull @CheckReturnValue default OffsetDateTime creationTime()
      The time this snowflake was generated.
      Returns:
      OffsetDateTime representing when this snowflake was generated.
    • creationTimestamp

      @Nonnull default String creationTimestamp(@Nonnull Timestamped.TimestampStyle style)