send DM when bot detects an old bot command

This commit is contained in:
13xforever
2025-07-17 19:03:25 +05:00
parent ec020174b9
commit 7c246d6796

View File

@@ -42,6 +42,16 @@ internal static partial class CommandErroredHandler
{
Config.Log.Warn(e, "Failed to remove message with unknown text command");
}
try
{
var dm = await tctx.CreateDmAsync().ConfigureAwait(false);
await dm.SendMessageAsync("""
You have tried to use an outdated bot command, please use Discord Application Command instead.
You can access them through `` > `Use Apps` on desktop, or the gamepad button on mobile.
Alternately you can open the list of App Commands by typing `/` prefix.
"""
).ConfigureAwait(false);
} catch {}
}
else
{