1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-20 00:43:36 +03:00

Add a note regarding command duplicates

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2023-06-23 22:48:27 +05:00
parent cfa1819fd8
commit 83e438e61c
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF

View file

@ -31,6 +31,10 @@ public class Boyfriend {
var services = host.Services;
var slashService = services.GetRequiredService<SlashService>();
// 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();