Package net.dv8tion.jda.api.entities
Interface ISnowflake
- All Known Subinterfaces:
- ApplicationEmoji,- ApplicationInfo,- ApplicationTeam,- AudioChannel,- AudioChannelUnion,- AutoModRule,- ButtonInteraction,- Category,- Channel,- ChannelUnion,- Command,- CommandAutoCompleteInteraction,- CommandInteraction,- CommandInteractionPayload,- ComponentInteraction,- ContextInteraction<T>,- CustomEmoji,- DefaultGuildChannelUnion,- Entitlement,- EntitySelectInteraction,- ForumChannel,- ForumTag,- ForumTagSnowflake,- GroupChannel,- Guild,- GuildChannel,- GuildChannelUnion,- GuildMessageChannel,- GuildMessageChannelUnion,- GuildSticker,- GuildVoiceState,- GuildWelcomeScreen.Channel,- IAgeRestrictedChannel,- IAutoCompleteCallback,- ICategorizableChannel,- ICommandReference,- ICopyableChannel,- IDeferrableCallback,- IInviteContainer,- IMemberContainer,- IMentionable,- IMessageEditCallback,- IModalCallback,- IncomingWebhookClient,- Interaction,- InteractionHook,- Invite.Channel,- Invite.EmbeddedApplication,- Invite.Group,- Invite.Guild,- IPermissionContainer,- IPermissionContainerUnion,- IPermissionHolder,- IPositionableChannel,- IPostContainer,- IReplyCallback,- ISlowmodeChannel,- IThreadContainer,- IThreadContainerUnion,- IVoiceStatusChannel,- IWebhookContainer,- IWebhookContainerUnion,- MediaChannel,- Member,- Message,- MessageChannel,- MessageChannelUnion,- MessageContextInteraction,- ModalInteraction,- NewsChannel,- PermissionOverride,- PrivateChannel,- RichCustomEmoji,- RichSticker,- Role,- ScheduledEvent,- SelectMenuInteraction<T,,- S> - SelfMember,- SelfUser,- SkuSnowflake,- SlashCommandInteraction,- StageChannel,- StageInstance,- StandardGuildChannel,- StandardGuildMessageChannel,- StandardSticker,- Sticker,- StickerItem,- StickerPack,- StickerSnowflake,- StickerUnion,- StringSelectInteraction,- TextChannel,- ThreadChannel,- ThreadMember,- User,- UserContextInteraction,- UserSnowflake,- VoiceChannel,- Webhook,- WebhookClient<T>,- Widget,- Widget.Member,- Widget.VoiceChannel
- All Known Implementing Classes:
- AttachmentUpdate,- AuditLogEntry,- ButtonInteractionEvent,- Command.Subcommand,- Command.SubcommandGroup,- CommandAutoCompleteInteractionEvent,- EntitySelectInteractionEvent,- EntitySelectMenu.DefaultValue,- GenericAutoCompleteInteractionEvent,- GenericCommandInteractionEvent,- GenericComponentInteractionCreateEvent,- GenericContextInteractionEvent,- GenericInteractionCreateEvent,- GenericSelectMenuInteractionEvent,- IntegrationPrivilege,- Message.Attachment,- Message.Interaction,- Message.InteractionMetadata,- MessageActivity.Application,- MessageContextInteractionEvent,- ModalInteractionEvent,- SlashCommandInteractionEvent,- SlashCommandReference,- StringSelectInteractionEvent,- TemplateChannel,- TemplateChannel.PermissionOverride,- TemplateGuild,- TemplateRole,- User.PrimaryGuild,- UserContextInteractionEvent,- Webhook.ChannelReference,- Webhook.GuildReference,- Webhook.WebhookReference
public interface ISnowflake
Marks a snowflake entity. Snowflake entities are ones that have an id that uniquely identifies them.
- Since:
- 3.0
- 
Method SummaryModifier and TypeMethodDescriptiondefault StringgetId()The Snowflake id of this entity.longThe Snowflake id of this entity.default OffsetDateTimeThe time this entity was created.
- 
Method Details- 
getIdThe Snowflake id of this entity. This is unique to every entity and will never change.- Returns:
- Never-null String containing the Id.
 
- 
getIdLonglong getIdLong()The Snowflake id of this entity. This is unique to every entity and will never change.- Returns:
- Long containing the Id.
 
- 
getTimeCreatedThe time this entity was created. Calculated through the Snowflake ingetIdLong().- Returns:
- OffsetDateTime - Time this entity was created at.
- See Also:
 
 
-