Package discord4j.core.object.command
Class ApplicationCommandInteractionResolved
java.lang.Object
discord4j.core.object.command.ApplicationCommandInteractionResolved
- All Implemented Interfaces:
DiscordObject
@Experimental
public class ApplicationCommandInteractionResolved
extends Object
implements DiscordObject
An object containing resolved objects from a Discord application command interaction.
- See Also:
-
Constructor Summary
ConstructorDescriptionApplicationCommandInteractionResolved
(GatewayDiscordClient gateway, discord4j.discordjson.json.ApplicationCommandInteractionResolvedData data, Long guildId) -
Method Summary
Modifier and TypeMethodDescriptiongetAttachment
(Snowflake attachmentId) Gets the resolved attachment with the given ID, if present.Gets a map containing the resolved attachments associated by their IDsgetChannel
(Snowflake channelId) Gets the resolved channel with the given ID, if present.Gets a map containing the resolved channels associated by their IDsReturns theGatewayDiscordClient
that created this object.discord4j.discordjson.json.ApplicationCommandInteractionResolvedData
getData()
Gets the raw data as represented by Discord.Gets the resolved member with the given ID, if present.Gets a map containing the resolved members associated by their IDsgetMessage
(Snowflake messageId) Gets the resolved message with the given ID, if present.Gets a map containing the resolved messages associated by their IDsGets the resolved role with the given ID, if present.getRoles()
Gets a map containing the resolved roles associated by their IDsGets the resolved user with the given ID, if present.getUsers()
Gets a map containing the resolved users associated by their IDstoString()
-
Constructor Details
-
ApplicationCommandInteractionResolved
public ApplicationCommandInteractionResolved(GatewayDiscordClient gateway, discord4j.discordjson.json.ApplicationCommandInteractionResolvedData data, @Nullable Long guildId)
-
-
Method Details
-
getClient
Description copied from interface:DiscordObject
Returns theGatewayDiscordClient
that created this object. Methods in it are exclusively based on the entity cache orStore
in use. Refer to callinggetClient().rest()
to access aDiscordClient
that is capable of requesting entities directly from the REST API.- Specified by:
getClient
in interfaceDiscordObject
- Returns:
- The
GatewayDiscordClient
associated to this object.
-
getData
public discord4j.discordjson.json.ApplicationCommandInteractionResolvedData getData()Gets the raw data as represented by Discord.- Returns:
- The raw data as represented by Discord.
-
getChannel
Gets the resolved channel with the given ID, if present.- Parameters:
channelId
- the ID of the channel to get- Returns:
- the resolved channel, if present
-
getChannels
Gets a map containing the resolved channels associated by their IDs- Returns:
- the resolved channels
-
getUser
Gets the resolved user with the given ID, if present.- Parameters:
userId
- the ID of the user to get- Returns:
- the resolved user, if present
-
getUsers
Gets a map containing the resolved users associated by their IDs- Returns:
- the resolved users
-
getMember
Gets the resolved member with the given ID, if present.- Parameters:
memberId
- the ID of the member to get- Returns:
- the resolved member, if present
-
getMembers
Gets a map containing the resolved members associated by their IDs- Returns:
- the resolved members
-
getRole
Gets the resolved role with the given ID, if present.- Parameters:
roleId
- the ID of the role to get- Returns:
- the resolved role, if present
-
getRoles
Gets a map containing the resolved roles associated by their IDs- Returns:
- the resolved roles
-
getMessage
Gets the resolved message with the given ID, if present.- Parameters:
messageId
- the ID of the message to get- Returns:
- the resolved message, if present
-
getMessages
Gets a map containing the resolved messages associated by their IDs- Returns:
- the resolved messages
-
getAttachment
Gets the resolved attachment with the given ID, if present.- Parameters:
attachmentId
- the ID of the attachment to get- Returns:
- the resolved attachment, if present
-
getAttachments
Gets a map containing the resolved attachments associated by their IDs- Returns:
- the resolved attachments
-
toString
-