mirror of https://github.com/oliverbooth/VPLink
feat: add support for app command responses
This commit is contained in:
parent
3882d77fbe
commit
feee8970ca
|
@ -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);
|
AddMessage(messages, displayName, content);
|
||||||
|
|
||||||
IReadOnlyCollection<IAttachment> attachments = message.Attachments;
|
IReadOnlyCollection<IAttachment> attachments = message.Attachments;
|
||||||
|
|
Loading…
Reference in New Issue