Class ApplicationCommandCreateEvent
java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.command.ApplicationCommandCreateEvent
Dispatched when an application command relevant to the current user is created.
This event is dispatched by Discord.
- See Also:
-
Constructor Summary
ConstructorDescriptionApplicationCommandCreateEvent
(GatewayDiscordClient gateway, ShardInfo shardInfo, ApplicationCommand command, Long guildId) -
Method Summary
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
Constructor Details
-
ApplicationCommandCreateEvent
public ApplicationCommandCreateEvent(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 created in this event. -
getCommand
Gets the command created in this event.- Returns:
- The command created in this event.
-