From 1d9ca5d0041089c36d9e9f9799c807ee88db5669 Mon Sep 17 00:00:00 2001 From: EmotionChild Date: Sun, 21 Aug 2022 20:43:28 +1200 Subject: [PATCH] Updated some more files --- SupportChild/Commands/CloseCommand.cs | 2 +- SupportChild/Commands/CreateButtonPanelCommand.cs | 6 +++--- SupportChild/Commands/CreateSelectionBoxPanelCommand.cs | 2 +- SupportChild/Commands/NewCommand.cs | 6 +++--- SupportChild/Commands/StatusCommand.cs | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/SupportChild/Commands/CloseCommand.cs b/SupportChild/Commands/CloseCommand.cs index 059d34f..5ef8913 100644 --- a/SupportChild/Commands/CloseCommand.cs +++ b/SupportChild/Commands/CloseCommand.cs @@ -33,7 +33,7 @@ public class CloseCommand : ApplicationCommandModule Color = DiscordColor.Cyan, Description = "Are you sure you wish to close this ticket? You cannot re-open it again later." }) - .AddComponents(new DiscordButtonComponent(ButtonStyle.Danger, "supportboi_closeconfirm", "Confirm")); + .AddComponents(new DiscordButtonComponent(ButtonStyle.Danger, "supportchild_closeconfirm", "Confirm")); await command.CreateResponseAsync(confirmation); diff --git a/SupportChild/Commands/CreateButtonPanelCommand.cs b/SupportChild/Commands/CreateButtonPanelCommand.cs index 15ee739..1224297 100644 --- a/SupportChild/Commands/CreateButtonPanelCommand.cs +++ b/SupportChild/Commands/CreateButtonPanelCommand.cs @@ -36,7 +36,7 @@ public class CreateButtonPanelCommand : ApplicationCommandModule for (; nrOfButtons < 5 * (nrOfButtonRows + 1) && nrOfButtons < verifiedCategories.Count; nrOfButtons++) { - buttonRow.Add(new DiscordButtonComponent(ButtonStyle.Primary, "supportboi_newticketbutton " + verifiedCategories[nrOfButtons].id, verifiedCategories[nrOfButtons].name)); + buttonRow.Add(new DiscordButtonComponent(ButtonStyle.Primary, "supportchild_newticketbutton " + verifiedCategories[nrOfButtons].id, verifiedCategories[nrOfButtons].name)); } builder.AddComponents(buttonRow); } @@ -53,9 +53,9 @@ public class CreateButtonPanelCommand : ApplicationCommandModule { await interaction.CreateResponseAsync(InteractionResponseType.DeferredChannelMessageWithSource, new DiscordInteractionResponseBuilder().AsEphemeral()); - if (!ulong.TryParse(interaction.Data.CustomId.Replace("supportboi_newticketbutton ", ""), out ulong categoryID) || categoryID == 0) + if (!ulong.TryParse(interaction.Data.CustomId.Replace("supportchild_newticketbutton ", ""), out ulong categoryID) || categoryID == 0) { - Logger.Warn("Invalid ID: " + interaction.Data.CustomId.Replace("supportboi_newticketbutton ", "")); + Logger.Warn("Invalid ID: " + interaction.Data.CustomId.Replace("supportchild_newticketbutton ", "")); return; } diff --git a/SupportChild/Commands/CreateSelectionBoxPanelCommand.cs b/SupportChild/Commands/CreateSelectionBoxPanelCommand.cs index 395d1e5..4442302 100644 --- a/SupportChild/Commands/CreateSelectionBoxPanelCommand.cs +++ b/SupportChild/Commands/CreateSelectionBoxPanelCommand.cs @@ -43,7 +43,7 @@ public class CreateSelectionBoxPanelCommand : ApplicationCommandModule { categoryOptions.Add(new DiscordSelectComponentOption(verifiedCategories[selectionOptions].name, verifiedCategories[selectionOptions].id.ToString())); } - selectionComponents.Add(new DiscordSelectComponent("supportboi_newticketselector" + selectionBoxes, placeholder, categoryOptions, false, 0, 1)); + selectionComponents.Add(new DiscordSelectComponent("supportchild_newticketselector" + selectionBoxes, placeholder, categoryOptions, false, 0, 1)); } return selectionComponents; diff --git a/SupportChild/Commands/NewCommand.cs b/SupportChild/Commands/NewCommand.cs index 0b77184..739174d 100644 --- a/SupportChild/Commands/NewCommand.cs +++ b/SupportChild/Commands/NewCommand.cs @@ -70,7 +70,7 @@ public class NewCommand : ApplicationCommandModule for (; nrOfButtons < 5 * (nrOfButtonRows + 1) && nrOfButtons < verifiedCategories.Count; nrOfButtons++) { - buttonRow.Add(new DiscordButtonComponent(ButtonStyle.Primary, "supportboi_newcommandbutton " + verifiedCategories[nrOfButtons].id, verifiedCategories[nrOfButtons].name)); + buttonRow.Add(new DiscordButtonComponent(ButtonStyle.Primary, "supportchild_newcommandbutton " + verifiedCategories[nrOfButtons].id, verifiedCategories[nrOfButtons].name)); } builder.AddComponents(buttonRow); } @@ -91,7 +91,7 @@ public class NewCommand : ApplicationCommandModule { categoryOptions.Add(new DiscordSelectComponentOption(verifiedCategories[selectionOptions].name, verifiedCategories[selectionOptions].id.ToString())); } - selectionComponents.Add(new DiscordSelectComponent("supportboi_newcommandselector" + selectionBoxes, "Open new ticket...", categoryOptions, false, 0, 1)); + selectionComponents.Add(new DiscordSelectComponent("supportchild_newcommandselector" + selectionBoxes, "Open new ticket...", categoryOptions, false, 0, 1)); } await command.CreateResponseAsync(new DiscordInteractionResponseBuilder().AddComponents(selectionComponents).AsEphemeral()); @@ -103,7 +103,7 @@ public class NewCommand : ApplicationCommandModule switch (interaction.Data.ComponentType) { case ComponentType.Button: - stringID = interaction.Data.CustomId.Replace("supportboi_newcommandbutton ", ""); + stringID = interaction.Data.CustomId.Replace("supportchild_newcommandbutton ", ""); break; case ComponentType.Select: if (interaction.Data.Values == null || interaction.Data.Values.Length <= 0) return; diff --git a/SupportChild/Commands/StatusCommand.cs b/SupportChild/Commands/StatusCommand.cs index dec688b..c7ee61f 100644 --- a/SupportChild/Commands/StatusCommand.cs +++ b/SupportChild/Commands/StatusCommand.cs @@ -15,7 +15,7 @@ public class StatusCommand : ApplicationCommandModule long closedTickets = Database.GetNumberOfClosedTickets(); DiscordEmbed botInfo = new DiscordEmbedBuilder() - .WithAuthor("KarlofDuty/SupportBoi @ GitHub", "https://github.com/EmotionChild/SupportChild", "https://cdn.discordapp.com/attachments/765441543100170271/914327948667011132/Ellie_Concept_2_transparent_ver.png") + .WithAuthor("KarlofDuty/supportchild @ GitHub", "https://github.com/EmotionChild/SupportChild", "https://cdn.discordapp.com/attachments/765441543100170271/914327948667011132/Ellie_Concept_2_transparent_ver.png") .WithTitle("Bot information") .WithColor(DiscordColor.Cyan) .AddField("Version:", SupportChild.GetVersion())