WIP: port message info embeds to cv2

This commit is contained in:
asleepyskye 2025-09-08 12:20:57 -04:00
parent 4293f26b8a
commit 651ac6ba5c
7 changed files with 263 additions and 21 deletions

View file

@ -76,6 +76,16 @@ public class InteractionContext
});
}
public async Task Reply(MessageComponent[] components = null)
{
await Respond(InteractionResponse.ResponseType.ChannelMessageWithSource,
new InteractionApplicationCommandCallbackData
{
Components = components,
Flags = Message.MessageFlags.Ephemeral | Message.MessageFlags.IsComponentsV2
});
}
public async Task Defer()
{
await Respond(InteractionResponse.ResponseType.DeferredChannelMessageWithSource,