Class GenericPrivilegeUpdateEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GenericGuildEvent
net.dv8tion.jda.api.events.interaction.command.GenericPrivilegeUpdateEvent
- All Implemented Interfaces:
GenericEvent
- Direct Known Subclasses:
ApplicationCommandUpdatePrivilegesEvent
,ApplicationUpdatePrivilegesEvent
Indicates that the privileges of an integration or its commands changed.
Can be used to get affected Guild
and the new IntegrationPrivileges
-
Constructor Summary
ConstructorDescriptionGenericPrivilegeUpdateEvent
(JDA api, long responseNumber, Guild guild, long targetId, long applicationId, List<IntegrationPrivilege> privileges) -
Method Summary
Modifier and TypeMethodDescriptionThe id of the application of which privileges have been changed.long
The id of the application of which privileges have been changed.The list of newIntegrationPrivileges
.The target-id.long
The target-id.abstract PrivilegeTargetType
The targetType
.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
-
GenericPrivilegeUpdateEvent
-
-
Method Details
-
getTargetType
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.
- Returns:
- The target type.
-
getTargetIdLong
public long getTargetIdLong()The target-id.This can either be the id of an integration, or of a command.
- Returns:
- The target-id.
- See Also:
-
getTargetId
The target-id.This can either be the id of an integration, or of a command.
- Returns:
- The target-id.
- See Also:
-
getApplicationIdLong
public long getApplicationIdLong()The id of the application of which privileges have been changed.- Returns:
- id of the application of which privileges have been changed.
-
getApplicationId
The id of the application of which privileges have been changed.- Returns:
- id of the application of which privileges have been changed.
-
getPrivileges
The list of newIntegrationPrivileges
.- Returns:
- Unmodifiable list containing the new IntegrationPrivileges.
-