Class ServerSlashCommandPermissionsBuilder



  • public class ServerSlashCommandPermissionsBuilder
    extends Object
    • Constructor Detail

      • ServerSlashCommandPermissionsBuilder

        public ServerSlashCommandPermissionsBuilder​(long commandId,
                                                    List<SlashCommandPermissions> permissions)
        Creates an instance of this server slash command permissions builder.
        Parameters:
        commandId - The command ID which should be updated.
        permissions - The permissions for the command which should be updated.
    • Method Detail

      • getCommandId

        public long getCommandId​()
        Gets the command ID.
        Returns:
        The command ID.
      • getPermissions

        public List<SlashCommandPermissions> getPermissions​()
        Gets a list of the slash command permissions.
        Returns:
        A list containing the slash command permissions.