From 9c3f858b42dad07cd2984aeab660d401404f7d8a Mon Sep 17 00:00:00 2001 From: Emzi0767 Date: Mon, 13 Feb 2017 22:22:06 +0100 Subject: [PATCH] Fixed couple non-default arguments in REST messages --- src/Discord.Net.Rest/Entities/Messages/RestUserMessage.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Discord.Net.Rest/Entities/Messages/RestUserMessage.cs b/src/Discord.Net.Rest/Entities/Messages/RestUserMessage.cs index b064e67b0..ee806dbc1 100644 --- a/src/Discord.Net.Rest/Entities/Messages/RestUserMessage.cs +++ b/src/Discord.Net.Rest/Entities/Messages/RestUserMessage.cs @@ -128,7 +128,7 @@ namespace Discord.Rest } } - public async Task ModifyAsync(Action func, RequestOptions options) + public async Task ModifyAsync(Action 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(); }, 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,