Skip to content

Commit

Permalink
Fixes missing argument assignment on SocketTextChannel.SendCard(s)Async
Browse files Browse the repository at this point in the history
  • Loading branch information
gehongyan committed Dec 30, 2022
1 parent 1e0774e commit 7511f11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Kook.Net.WebSocket/Entities/Channels/SocketTextChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,22 +169,22 @@ public Task<IReadOnlyCollection<RestMessage>> GetPinnedMessagesAsync(RequestOpti

/// <inheritdoc cref="IMessageChannel.SendFileAsync(string,string,AttachmentType,IQuote,IUser,RequestOptions)"/>
public Task<Cacheable<IUserMessage, Guid>> SendFileAsync(string path, string fileName = null, AttachmentType type = AttachmentType.File, Quote quote = null, IUser ephemeralUser = null, RequestOptions options = null)
=> ChannelHelper.SendFileAsync(this, Kook, path, fileName, type, options, quote, ephemeralUser);
=> ChannelHelper.SendFileAsync(this, Kook, path, fileName, type, options, quote: quote, ephemeralUser: ephemeralUser);
/// <inheritdoc cref="IMessageChannel.SendFileAsync(Stream,string,AttachmentType,IQuote,IUser,RequestOptions)"/>
public Task<Cacheable<IUserMessage, Guid>> SendFileAsync(Stream stream, string fileName = null, AttachmentType type = AttachmentType.File, Quote quote = null, IUser ephemeralUser = null, RequestOptions options = null)
=> ChannelHelper.SendFileAsync(this, Kook, stream, fileName, type, options, quote, ephemeralUser);
=> ChannelHelper.SendFileAsync(this, Kook, stream, fileName, type, options, quote: quote, ephemeralUser: ephemeralUser);
/// <inheritdoc cref="IMessageChannel.SendFileAsync(FileAttachment,IQuote,IUser,RequestOptions)"/>
public Task<Cacheable<IUserMessage, Guid>> SendFileAsync(FileAttachment attachment, Quote quote = null, IUser ephemeralUser = null, RequestOptions options = null)
=> ChannelHelper.SendFileAsync(this, Kook, attachment, options, quote, ephemeralUser);
=> ChannelHelper.SendFileAsync(this, Kook, attachment, options, quote: quote, ephemeralUser: ephemeralUser);
/// <inheritdoc cref="IMessageChannel.SendTextAsync(string,IQuote,IUser,RequestOptions)"/>
public Task<Cacheable<IUserMessage, Guid>> SendTextAsync(string text, Quote quote = null, IUser ephemeralUser = null, RequestOptions options = null)
=> ChannelHelper.SendMessageAsync(this, Kook, MessageType.KMarkdown, text, options, quote: quote, ephemeralUser: ephemeralUser);
/// <inheritdoc cref="IMessageChannel.SendCardsAsync(IEnumerable{ICard},IQuote,IUser,RequestOptions)"/>
public Task<Cacheable<IUserMessage, Guid>> SendCardsAsync(IEnumerable<ICard> cards, Quote quote = null, IUser ephemeralUser = null, RequestOptions options = null)
=> ChannelHelper.SendCardsAsync(this, Kook, cards, options, quote: quote);
=> ChannelHelper.SendCardsAsync(this, Kook, cards, options, quote: quote, ephemeralUser: ephemeralUser);
/// <inheritdoc cref="IMessageChannel.SendCardAsync(ICard,IQuote,IUser,RequestOptions)"/>
public Task<Cacheable<IUserMessage, Guid>> SendCardAsync(ICard card, Quote quote = null, IUser ephemeralUser = null, RequestOptions options = null)
=> ChannelHelper.SendCardAsync(this, Kook, card, options, quote: quote);
=> ChannelHelper.SendCardAsync(this, Kook, card, options, quote: quote, ephemeralUser: ephemeralUser);

/// <inheritdoc />
public async Task ModifyMessageAsync(Guid messageId, Action<MessageProperties> func, RequestOptions options = null)
Expand Down

0 comments on commit 7511f11

Please sign in to comment.