Class ApplicationCommandUpdatePrivilegesEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GenericGuildEvent
net.dv8tion.jda.api.events.interaction.command.GenericPrivilegeUpdateEvent
net.dv8tion.jda.api.events.interaction.command.ApplicationCommandUpdatePrivilegesEvent
- All Implemented Interfaces:
GenericEvent
Indicates that the
If the moderator updates application-wide privileges instead of command, a
Privileges
of an application-command on a guild changed.
If the moderator updates application-wide privileges instead of command, a
ApplicationUpdatePrivilegesEvent
will be fired instead.
Can be used to get affected Guild and List
of new Privileges
-
Constructor Summary
ConstructorDescriptionApplicationCommandUpdatePrivilegesEvent
(JDA api, long responseNumber, Guild guild, long targetId, long applicationId, List<IntegrationPrivilege> privileges) -
Method Summary
Modifier and TypeMethodDescriptionThe id of the command whose privileges have been changed.long
The id of the command whose privileges have been changed.The targetType
.Methods inherited from class net.dv8tion.jda.api.events.interaction.command.GenericPrivilegeUpdateEvent
getApplicationId, getApplicationIdLong, getPrivileges, getTargetId, getTargetIdLong
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
ApplicationCommandUpdatePrivilegesEvent
-
-
Method Details
-
getTargetType
Description copied from class:GenericPrivilegeUpdateEvent
The targetType
.This can either be:
INTEGRATION
- If the privileges have been changed on the integration-level.COMMAND
- If the privileges have been changed on a command.
- Specified by:
getTargetType
in classGenericPrivilegeUpdateEvent
- Returns:
- The target type.
-
getCommandIdLong
public long getCommandIdLong()The id of the command whose privileges have been changed.- Returns:
- id of the command whose privileges have been changed.
-
getCommandId
The id of the command whose privileges have been changed.- Returns:
- id of the command whose privileges have been changed.
-