Browse Source

Add components and stickers to ReplyAsync extension

pull/1923/head
quin lynch 3 years ago
parent
commit
b88525aa98
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net.Core/Extensions/MessageExtensions.cs

+ 2
- 2
src/Discord.Net.Core/Extensions/MessageExtensions.cs View File

@@ -87,9 +87,9 @@ namespace Discord
/// A task that represents an asynchronous send operation for delivering the message. The task result
/// contains the sent message.
/// </returns>
public static async Task<IUserMessage> ReplyAsync(this IUserMessage msg, string text = null, bool isTTS = false, Embed embed = null, AllowedMentions allowedMentions = null, RequestOptions options = null)
public static async Task<IUserMessage> ReplyAsync(this IUserMessage msg, string text = null, bool isTTS = false, Embed embed = null, AllowedMentions allowedMentions = null, RequestOptions options = null, MessageComponent components = null, ISticker[] stickers = null)
{
return await msg.Channel.SendMessageAsync(text, isTTS, embed, options, allowedMentions, new MessageReference(messageId: msg.Id)).ConfigureAwait(false);
return await msg.Channel.SendMessageAsync(text, isTTS, embed, options, allowedMentions, new MessageReference(messageId: msg.Id), components, stickers).ConfigureAwait(false);
}
}
}

Loading…
Cancel
Save