From 8e7a21c81a6187e8a180ab6c027ee3e09ae98ca9 Mon Sep 17 00:00:00 2001 From: Toastie Date: Fri, 27 Dec 2024 18:14:20 +1300 Subject: [PATCH] Fix interview category id type in schema --- Commands/InterviewTemplateCommands.cs | 4 ++-- Interviews/interview_template.schema.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Commands/InterviewTemplateCommands.cs b/Commands/InterviewTemplateCommands.cs index 1eff933..3ad55c2 100644 --- a/Commands/InterviewTemplateCommands.cs +++ b/Commands/InterviewTemplateCommands.cs @@ -43,7 +43,7 @@ public class InterviewTemplateCommands { string defaultTemplate = "{\n" + - " \"category-id\": \"" + category.Id + "\",\n" + + " \"category-id\": " + category.Id + ",\n" + " \"interview\":\n" + " {\n" + " \"message\": \"\",\n" + @@ -147,7 +147,7 @@ public class InterviewTemplateCommands await command.RespondAsync(new DiscordEmbedBuilder { Color = DiscordColor.Green, - Description = "Uploaded interview template for `\" + category.Name + \"`." + Description = "Uploaded interview template for `" + category.Name + "`." }, true); } else diff --git a/Interviews/interview_template.schema.json b/Interviews/interview_template.schema.json index 4789787..fb26b02 100644 --- a/Interviews/interview_template.schema.json +++ b/Interviews/interview_template.schema.json @@ -168,7 +168,7 @@ { "category-id": { - "type": "string", + "type": "number", "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." },