Fix interview category id type in schema

This commit is contained in:
Toastie 2024-12-27 18:14:20 +13:00
parent ad940c6167
commit 8e7a21c81a
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
2 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ public class InterviewTemplateCommands
{ {
string defaultTemplate = string defaultTemplate =
"{\n" + "{\n" +
" \"category-id\": \"" + category.Id + "\",\n" + " \"category-id\": " + category.Id + ",\n" +
" \"interview\":\n" + " \"interview\":\n" +
" {\n" + " {\n" +
" \"message\": \"\",\n" + " \"message\": \"\",\n" +
@ -147,7 +147,7 @@ public class InterviewTemplateCommands
await command.RespondAsync(new DiscordEmbedBuilder await command.RespondAsync(new DiscordEmbedBuilder
{ {
Color = DiscordColor.Green, Color = DiscordColor.Green,
Description = "Uploaded interview template for `\" + category.Name + \"`." Description = "Uploaded interview template for `" + category.Name + "`."
}, true); }, true);
} }
else else

View file

@ -168,7 +168,7 @@
{ {
"category-id": "category-id":
{ {
"type": "string", "type": "number",
"title": "Category ID", "title": "Category ID",
"description": "The id of the category this template applies to. You can change this and re-upload the template to apply it to a different category." "description": "The id of the category this template applies to. You can change this and re-upload the template to apply it to a different category."
}, },