Package discord4j.core.object
Interface DiscordObject
-
- All Known Subinterfaces:
CategorizableChannel,Channel,Entity,GuildChannel,GuildMessageChannel,MessageChannel,TopLevelGuildChannel,TopLevelGuildMessageChannel
- All Known Implementing Classes:
ApplicationCommand,ApplicationCommandInteraction,ApplicationCommandInteractionOption,ApplicationCommandInteractionOptionValue,ApplicationCommandInteractionResolved,ApplicationCommandOption,ApplicationCommandOptionChoice,ApplicationInfo,ApplicationTeam,ApplicationTeamMember,Attachment,AuditLogEntry,Ban,Category,Embed,ExtendedInvite,ExtendedPermissionOverwrite,FollowedChannel,Guild,GuildEmoji,GuildTemplate,Integration,IntegrationAccount,IntegrationApplication,Interaction,Invite,Member,Message,MessageInteraction,MessageReference,NewsChannel,PartialMember,PrivateChannel,Reaction,Region,ResolvedChannel,ResolvedMember,Role,RoleTags,Sticker,StoreChannel,TextChannel,User,VoiceChannel,VoiceState,Webhook
public interface DiscordObjectAn object characterized by the Discord platform.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GatewayDiscordClientgetClient()Returns theGatewayDiscordClientthat created this object.
-
-
-
Method Detail
-
getClient
GatewayDiscordClient getClient()
Returns theGatewayDiscordClientthat created this object. Methods in it are exclusively based on the entity cache orStorein use. Refer to callinggetClient().rest()to access aDiscordClientthat is capable of requesting entities directly from the REST API.- Returns:
- The
GatewayDiscordClientassociated to this object.
-
-