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
ConstructorDescriptionApplicationUpdatePrivilegesEvent
(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, 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
-
ApplicationUpdatePrivilegesEvent
-
-
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.
-