public InteractionResponse(InteractionResponseType type, string content = null, bool?tts = null, Embed embed = null, AllowedMentions mentions = null, InteractionResponseFlags flags = InteractionResponseFlags.None) { Type = type; Data = new InteractionApplicationCommandCallbackData() { TTS = tts, Content = content, Embeds = embed == null ? null : new Embed[1] { embed }, AllowedMentions = mentions, Flags = flags }; if (Type == InteractionResponseType.Pong || Data.IsEmpty) { Data = null; } }
protected async Task <IUserMessage> ReplyAsync(string message = null, bool isTTS = false, Embed embed = null, AllowedMentions allowedMentions = null, InteractionResponseFlags flags = InteractionResponseFlags.None) { var resp = new InteractionResponse(InteractionResponseType.ChannelMessage, message, isTTS, embed, allowedMentions, flags); await Reply(resp); return(null); }