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
ConstructorsConstructorDescriptionApplicationCommandUpdatePrivilegesEvent(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.longThe 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, 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
-
ApplicationCommandUpdatePrivilegesEvent
-
-
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.
-
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.
-