Browse Source

Merge pull request #523 from Emzi0767/dev

Fixed couple non-default arguments in REST messages
tags/1.0-rc
RogueException GitHub 8 years ago
parent
commit
85e0dee0f0
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/Discord.Net.Rest/Entities/Messages/RestUserMessage.cs

+ 3
- 3
src/Discord.Net.Rest/Entities/Messages/RestUserMessage.cs 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,


Loading…
Cancel
Save