Class ApplicationCommandDeleteEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.command.ApplicationCommandEvent
-
- discord4j.core.event.domain.command.ApplicationCommandDeleteEvent
-
public class ApplicationCommandDeleteEvent extends ApplicationCommandEvent
Dispatched when an application command relevant to the current user is deleted. This event is dispatched by Discord.- See Also:
- Application Command Delete
-
-
Constructor Summary
Constructors Constructor Description ApplicationCommandDeleteEvent(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 deleted in this event.Mono<Guild>
getGuild()
Requests to retrieve theGuild
that had an application command deleted in this event.Optional<Snowflake>
getGuildId()
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
ApplicationCommandDeleteEvent
public ApplicationCommandDeleteEvent(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 deleted in this event.
-
getCommand
public ApplicationCommand getCommand()
Gets the command deleted in this event.- Returns:
- The command deleted in this event.
-
-