Class ApplicationUpdatePrivilegesEvent
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.ApplicationUpdatePrivilegesEvent
- All Implemented Interfaces:
GenericEvent
Indicates that the
If the moderator updates the privileges of a specific command, a
Privileges of an application changed.
If the moderator updates the privileges of a specific command, a
ApplicationCommandUpdatePrivilegesEvent will be fired instead.
Can be used to get affected Guild and List of new Privileges
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationUpdatePrivilegesEvent(JDA api, long responseNumber, Guild guild, long applicationId, List<IntegrationPrivilege> privileges) -
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.interaction.command.GenericPrivilegeUpdateEvent
getApplicationId, getApplicationIdLong, getPrivileges, getTargetId, getTargetIdLongMethods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuildMethods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
ApplicationUpdatePrivilegesEvent
-
-
Method Details
-
getTargetType
Description copied from class:GenericPrivilegeUpdateEventThe 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:
getTargetTypein classGenericPrivilegeUpdateEvent- Returns:
- The target type.
-