Class ApplicationCommandPermissionUpdateEvent
java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.command.ApplicationCommandEvent
discord4j.core.event.domain.command.ApplicationCommandPermissionUpdateEvent
Dispatched when an application command permission relevant to the current user is updated. This
event is dispatched by Discord.
- See Also:
-
Constructor Summary
ConstructorDescriptionApplicationCommandPermissionUpdateEvent
(GatewayDiscordClient gateway, ShardInfo shardInfo, ApplicationCommandGuildPermissions permissions) -
Method Summary
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
Constructor Details
-
ApplicationCommandPermissionUpdateEvent
public ApplicationCommandPermissionUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, ApplicationCommandGuildPermissions permissions)
-
-
Method Details
-
getId
Gets unique id of the command.- Returns:
- The unique id of the command.
-
getGuildId
- Returns:
- The ID of the guild involved.
-
getGuild
Requests to retrieve theGuild
that had an application command updated in this event. -
getApplicationId
Gets the ID of the application the command belongs to.- Returns:
- th ID of the application the command belongs to
-
getPermissions
Returns the permissions for the command in the guild.- Returns:
- the permissions for the command in the guild.
-