Interface SlashCommandPermissionsBuilderDelegate



  • public interface SlashCommandPermissionsBuilderDelegate
    • Method Detail

      • setId

        void setId​(long id)
        Sets the ID of the slash command permissions.
        Parameters:
        id - The id.
      • setType

        void setType​(SlashCommandPermissionType type)
        Sets the type of the slash command permissions.
        Parameters:
        type - The type.
      • setPermission

        void setPermission​(boolean permission)
        Sets the permissions of the slash command option whether the command should be enabled or disabled.
        Parameters:
        permission - The permission.
      • build

        SlashCommandPermissions build​()
        Builds the slash command permissions.
        Returns:
        A new instance of the SlashCommandPermissions.