Class ApplicationCommandUpdateEvent
java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.command.ApplicationCommandEvent
discord4j.core.event.domain.command.ApplicationCommandUpdateEvent
Dispatched when an application command relevant to the current user is updated.
This event is dispatched by Discord.
- See Also:
-
Constructor Summary
ConstructorDescriptionApplicationCommandUpdateEvent
(GatewayDiscordClient gateway, ShardInfo shardInfo, ApplicationCommand command, Long guildId) -
Method Summary
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
Constructor Details
-
ApplicationCommandUpdateEvent
public ApplicationCommandUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, ApplicationCommand command, @Nullable Long guildId)
-
-
Method Details
-
getGuildId
- Returns:
- The ID of the guild involved, if present.
-
getGuild
Requests to retrieve theGuild
that had an application command updated in this event. -
getCommand
Gets the command updated in this event.- Returns:
- The command updated in this event.
-