From 83e438e61c3391fa14519eabdfd31e0b212c630a Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Fri, 23 Jun 2023 22:48:27 +0500 Subject: [PATCH] Add a note regarding command duplicates Signed-off-by: Octol1ttle --- Boyfriend.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Boyfriend.cs b/Boyfriend.cs index ada3cc0..21e1b02 100644 --- a/Boyfriend.cs +++ b/Boyfriend.cs @@ -31,6 +31,10 @@ public class Boyfriend { var services = host.Services; var slashService = services.GetRequiredService(); + // Providing a guild ID to this call will result in command duplicates! + // To get rid of them, provide the ID of the guild containing duplicates, + // comment out calls to WithCommandGroup in CreateHostBuilder + // then launch the bot again and remove the guild ID await slashService.UpdateSlashCommandsAsync(); await host.RunAsync();