Package com.mewna.catnip.entity.partials
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
A subset of entities that have an ID attached.
- Since:
- 5/9/18.
- Author:
- natanbc
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Method Summary
Modifier and TypeMethodDescriptiondefault OffsetDateTime
The time this snowflake was generated.default String
default String
id()
The ID of this snowflake.long
idAsLong()
The ID of this snowflake, as a long.Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Method Details
-
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
The time this snowflake was generated.- Returns:
- OffsetDateTime representing when this snowflake was generated.
-
creationTimestamp
-