Class ApplicationCommandUpdateEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.command.ApplicationCommandEvent
-
- discord4j.core.event.domain.command.ApplicationCommandUpdateEvent
-
public class ApplicationCommandUpdateEvent extends ApplicationCommandEvent
Dispatched when an application command relevant to the current user is updated. This event is dispatched by Discord.- See Also:
- Application Command Update
-
-
Constructor Summary
Constructors Constructor Description ApplicationCommandUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, ApplicationCommand command, Long guildId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationCommand
getCommand()
Gets the command updated in this event.Mono<Guild>
getGuild()
Requests to retrieve theGuild
that had an application command updated in this event.Optional<Snowflake>
getGuildId()
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
ApplicationCommandUpdateEvent
public ApplicationCommandUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, ApplicationCommand command, @Nullable Long guildId)
-
-
Method Detail
-
getGuildId
public Optional<Snowflake> getGuildId()
- Returns:
- The ID of the guild involved, if present.
-
getGuild
public Mono<Guild> getGuild()
Requests to retrieve theGuild
that had an application command updated in this event.
-
getCommand
public ApplicationCommand getCommand()
Gets the command updated in this event.- Returns:
- The command updated in this event.
-
-