Package org.javacord.api.event.server
Interface ApplicationCommandPermissionsUpdateEvent
-
- All Superinterfaces:
Event,ServerEvent
public interface ApplicationCommandPermissionsUpdateEvent extends ServerEvent
An application command permissions update event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetApplicationId()Gets the ID of the application whose command permissions were updated.java.util.Optional<java.lang.Long>getCommandId()Gets the ID of the command whose permissions were updated.java.util.Set<ApplicationCommandPermissions>getUpdatedPermissions()Gets the updated permissions.-
Methods inherited from interface org.javacord.api.event.server.ServerEvent
getServer
-
-
-
-
Method Detail
-
getApplicationId
long getApplicationId()
Gets the ID of the application whose command permissions were updated.- Returns:
- The ID of the application updated.
-
getCommandId
java.util.Optional<java.lang.Long> getCommandId()
Gets the ID of the command whose permissions were updated. Returns an empty Optional if the permissions were updated for all commands.- Returns:
- The ID of the command updated.
-
getUpdatedPermissions
java.util.Set<ApplicationCommandPermissions> getUpdatedPermissions()
Gets the updated permissions.- Returns:
- The updated permissions.
-
-