cdcommands
Version:
An advanced handler for Discord.js Bots with TypeScript and JavaScript support.
97 lines (96 loc) • 2.74 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"definitions": {
"embed": {
"properties": {
"title": {
"type": "string",
"description": "Usable replacers: \"{TITLE}\""
},
"url": {
"type": "string",
"description": "Usable replacers: \"{TITLE_URL}\""
},
"author": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Usable replacers: \"{AUTHOR_NAME}\""
},
"iconURL": {
"type": "string",
"description": "Usable replacers: \"{AUTHOR_URL}\""
}
}
},
"color": {
"type": ["number", "string"],
"description": "Usable replacers: \"{COLOR}\""
},
"fields": {
"type": "array",
"minItems": 1,
"maxItems": 25,
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Usable replacers: \"{FIELD_NAME}\""
},
"value": {
"type": "string",
"description": "Usable replacers: \"{FIELD_VALUE}\""
},
"inline": {
"type": ["boolean", "string"],
"description": "Usabled replacers: \"{FIELD_INLINE}\""
}
}
}
},
"footer": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Usabled replacers: \"{FOOTER_TEXT}\""
},
"iconURL": {
"type": "string",
"description": "Usabled replacers: \"{FOOTER_URL}\""
}
}
},
"timestamp": {
"type": ["number", "string"],
"description": "Usabled replacers: \"{TIMESTAMP}\""
},
"thumbnail": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Usabled replacers: \"{THUMBNAIL_URL}\""
}
}
},
"description": {
"type": "string",
"description": "Usabled replacers: \"{DESCRIPTION}\""
},
"image": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Usabled replacers: \"{IMAGE}\""
}
}
}
}
}
}
}