Package net.dv8tion.jda.api.entities
Interface ISnowflake
-
- All Known Subinterfaces:
AbstractChannel
,ApplicationInfo
,ApplicationTeam
,ButtonInteraction
,Category
,CommandInteraction
,ComponentInteraction
,Emote
,Guild
,GuildChannel
,GuildVoiceState
,IMentionable
,Interaction
,Invite.Channel
,Invite.EmbeddedApplication
,Invite.Group
,Invite.Guild
,IPermissionHolder
,ListedEmote
,Member
,Message
,MessageChannel
,PermissionOverride
,PrivateChannel
,Role
,SelectionMenuInteraction
,SelfUser
,StageChannel
,StageInstance
,StoreChannel
,TextChannel
,User
,VoiceChannel
,Webhook
- All Known Implementing Classes:
Activity.Emoji
,AuditLogEntry
,ButtonClickEvent
,Command
,CommandPrivilege
,Emoji
,GenericComponentInteractionCreateEvent
,GenericInteractionCreateEvent
,Message.Attachment
,Message.Interaction
,MessageActivity.Application
,MessageReaction.ReactionEmote
,MessageSticker
,SelectionMenuEvent
,SlashCommandEvent
,TemplateChannel
,TemplateChannel.PermissionOverride
,TemplateGuild
,TemplateRole
,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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.String
getId()
The Snowflake id of this entity.long
getIdLong()
The Snowflake id of this entity.default java.time.OffsetDateTime
getTimeCreated()
The time this entity was created.
-
-
-
Method Detail
-
getId
@Nonnull default java.lang.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 java.time.OffsetDateTime getTimeCreated()
The time this entity was created. Calculated through the Snowflake ingetIdLong()
.- Returns:
- OffsetDateTime - Time this entity was created at.
- See Also:
TimeUtil.getTimeCreated(long)
-
-