feat: add support for app command responses

This commit is contained in:
Oliver Booth 2023-08-27 17:02:50 +01:00
parent 3882d77fbe
commit feee8970ca
Signed by: oliverbooth
GPG Key ID: B89D139977693FED
1 changed files with 7 additions and 0 deletions

View File

@ -119,6 +119,13 @@ internal sealed class DiscordMessageService : BackgroundService, IDiscordMessage
}
}
if (arg.Interaction is { Type: InteractionType.ApplicationCommand } interaction)
{
string name = interaction.User.GetDisplayName();
string commandName = interaction.Name;
messages.Add(new RelayedMessage(null, $"⌨️ {name} used /{commandName}", true));
}
AddMessage(messages, displayName, content);
IReadOnlyCollection<IAttachment> attachments = message.Attachments;