Skip to content
Success

Changes

Summary

  1. Add Support for Application-Command Permissions V2 (#2113) (commit: 4fc8c35) (details)
Commit 4fc8c352b5cb078291a8f7be356a694ace178026 by noreply
Add Support for Application-Command Permissions V2 (#2113)

* Add ApplicationCommandUpdatePermissionsEvent
* Add ActionType#APPLICATION_COMMAND_PERMISSION_UPDATE
* Use IntegrationPrivilege and remove CommandData#setDefaultEnabled
* Rename retrieveCommandPrivilegesById
* Add GenericPrivilegeUpdateEvent
* Update SlashBotExample to use perms v2
* Add PrivilegeConfig
(commit: 4fc8c35)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/Guild.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/hooks/ListenerAdapter.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/interactions/commands/PrivilegeConfig.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/requests/restaction/CommandEditAction.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/interactions/commands/privileges/IntegrationPrivilege.java
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/interactions/command/CommandImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/interactions/commands/build/CommandData.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/internal/handle/ApplicationCommandPermissionsUpdateHandler.java
The file was addedsrc/main/java/net/dv8tion/jda/api/events/interaction/command/GenericPrivilegeUpdateEvent.java
The file was addedsrc/main/java/net/dv8tion/jda/api/events/interaction/command/ApplicationUpdatePrivilegesEvent.java
The file was modifiedsrc/examples/java/SlashBotExample.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/interactions/commands/Command.java (diff)
The file was removedsrc/main/java/net/dv8tion/jda/api/interactions/commands/privileges/CommandPrivilege.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/requests/restaction/CommandCreateAction.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/CommandEditActionImpl.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/interactions/commands/DefaultMemberPermissions.java
The file was addedsrc/main/java/net/dv8tion/jda/api/events/interaction/command/ApplicationCommandUpdatePrivilegesEvent.java
The file was addedsrc/main/java/net/dv8tion/jda/api/interactions/commands/privileges/PrivilegeTargetType.java
The file was modifiedsrc/test/java/CommandDataTest.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/interactions/commands/build/SlashCommandData.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/requests/WebSocketClient.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/interactions/CommandDataImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/audit/ActionType.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/GuildImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/CommandCreateActionImpl.java (diff)