mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-07 07:53:05 +00:00
Fire and forget the command handler invocation
This commit is contained in:
parent
99e0e75ded
commit
1a763c6596
@ -20,7 +20,9 @@ namespace BiblioTech
|
||||
Program.Log.Log($"Responding to '{Name}'");
|
||||
var context = new CommandContext(command, command.Data.Options);
|
||||
await command.RespondAsync(StartingMessage, ephemeral: IsEphemeral(context));
|
||||
await Invoke(context);
|
||||
|
||||
// Fire and forget invocation handler. Return SlashCommandHandler immediately.
|
||||
_ = Invoke(context);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user