Merge pull request #523 from Emzi0767/dev

Fixed couple non-default arguments in REST messages
This commit is contained in:
RogueException
2017-02-20 18:16:35 -04:00
committed by GitHub

View File

@@ -128,7 +128,7 @@ namespace Discord.Rest
}
}
public async Task ModifyAsync(Action<MessageProperties> func, RequestOptions options)
public async Task ModifyAsync(Action<MessageProperties> func, RequestOptions options = null)
{
var model = await MessageHelper.ModifyAsync(this, Discord, func, options).ConfigureAwait(false);
Update(model);
@@ -151,9 +151,9 @@ namespace Discord.Rest
=> MessageHelper.GetReactionUsersAsync(this, emoji, x => { x.Limit = limit; x.AfterUserId = afterUserId.HasValue ? afterUserId.Value : Optional.Create<ulong>(); }, Discord, options);
public Task PinAsync(RequestOptions options)
public Task PinAsync(RequestOptions options = null)
=> MessageHelper.PinAsync(this, Discord, options);
public Task UnpinAsync(RequestOptions options)
public Task UnpinAsync(RequestOptions options = null)
=> MessageHelper.UnpinAsync(this, Discord, options);
public string Resolve(int startIndex, TagHandling userHandling = TagHandling.Name, TagHandling channelHandling = TagHandling.Name,