Interface SlashCommandPermissionsUpdaterDelegate



  • public interface SlashCommandPermissionsUpdaterDelegate
    • Method Detail

      • setPermissions

        void setPermissions​(List<SlashCommandPermissions> permissions)
        Sets the permissions of the slash command updater.
        Parameters:
        permissions - The permissions.
      • addPermissions

        void addPermissions​(List<SlashCommandPermissions> permissions)
        Add the permissions to the slash command updater.
        Parameters:
        permissions - The permissions.
      • addPermission

        void addPermission​(SlashCommandPermissions permission)
        Adds the permission to the slash command updater.
        Parameters:
        permission - The permission.
      • update

        CompletableFuture<ServerSlashCommandPermissions> update​(long commandId)
        Updates the command with the set permissions.
        Parameters:
        commandId - The ID of the command which should be updated.
        Returns:
        The updated server slash command permissions.