{
    "type": "object",
    "properties": {
        "$schema": {
            "type": "string"
        },
        "sync_emojis": {
            "type": "boolean",
            "default": true
        },
        "emoji_resolve_strategy": {
            "type": "string",
            "enum": [
                "both",
                "home_guild",
                "application"
            ],
            "default": "both"
        },
        "system_admins": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "default": []
        },
        "snippets": {
            "type": "object",
            "properties": {
                "save_attachments": {
                    "type": "boolean",
                    "default": false
                }
            },
            "additionalProperties": false
        },
        "restart_exit_code": {
            "type": "integer",
            "default": 1
        },
        "trust_proxies": {
            "type": "integer"
        },
        "presence": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string"
                },
                "status": {
                    "type": "string",
                    "enum": [
                        "online",
                        "idle",
                        "dnd",
                        "invisible"
                    ]
                },
                "url": {
                    "type": "string"
                },
                "type": {
                    "type": "string",
                    "enum": [
                        "Competing",
                        "Listening",
                        "Playing",
                        "Streaming",
                        "Watching",
                        "Custom"
                    ]
                }
            },
            "required": [
                "type"
            ],
            "additionalProperties": false
        },
        "commands": {
            "type": "object",
            "properties": {
                "mention_prefix": {
                    "type": "boolean",
                    "default": true
                },
                "groups": {
                    "type": "object",
                    "additionalProperties": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "default": {}
                },
                "register_application_commands_on_boot": {
                    "type": "string",
                    "enum": [
                        "always_global",
                        "guild",
                        "none",
                        "auto_global"
                    ],
                    "default": "auto_global"
                },
                "global_disabled": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "default": []
                },
                "system_banned_users": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "default": []
                }
            },
            "additionalProperties": false,
            "default": {}
        },
        "enable_file_filter": {
            "type": "boolean",
            "default": false
        },
        "command_permission_mode": {
            "type": "string",
            "enum": [
                "ignore",
                "overwrite",
                "check"
            ],
            "default": "overwrite"
        },
        "api": {
            "type": "object",
            "properties": {
                "enabled": {
                    "type": "boolean",
                    "default": true
                },
                "server_status": {
                    "type": "string",
                    "enum": [
                        "operational",
                        "degraded",
                        "partial_outage",
                        "major_outage",
                        "maintenance",
                        "error"
                    ],
                    "default": "operational"
                },
                "server_status_description": {
                    "type": "string"
                },
                "server_status_started_at": {
                    "anyOf": [
                        {
                            "allOf": [
                                {
                                    "type": "string"
                                },
                                {
                                    "type": "string",
                                    "format": "date-time"
                                }
                            ]
                        },
                        {
                            "type": "string",
                            "format": "date-time"
                        }
                    ]
                }
            },
            "additionalProperties": false,
            "default": {}
        },
        "extensions": {
            "type": "object",
            "properties": {
                "default_mode": {
                    "type": "string",
                    "enum": [
                        "enable_all",
                        "disable_all"
                    ],
                    "default": "enable_all"
                }
            },
            "additionalProperties": false,
            "default": {}
        },
        "log_server": {
            "type": "object",
            "properties": {
                "enabled": {
                    "type": "boolean",
                    "default": false
                },
                "auto_start": {
                    "type": "boolean",
                    "default": false
                }
            },
            "additionalProperties": false
        },
        "logging": {
            "type": "object",
            "properties": {
                "enabled": {
                    "type": "boolean",
                    "default": false
                },
                "webhook_url": {
                    "type": "string",
                    "format": "uri"
                }
            },
            "required": [
                "webhook_url"
            ],
            "additionalProperties": false
        },
        "statistics": {
            "type": "object",
            "properties": {
                "enabled": {
                    "type": "boolean",
                    "default": false
                },
                "sync_delay": {
                    "type": "integer",
                    "default": 60000
                }
            },
            "additionalProperties": false
        }
    },
    "additionalProperties": false,
    "$schema": "http://json-schema.org/draft-07/schema#"
}