Browse Source

Merge pull request #333 from LassieME/issue-332-fix

Update ReplyAsync Task to return the sent message.
pull/334/merge
RogueException GitHub 8 years ago
parent
commit
9fcf88b7ac
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net.Commands/ModuleBase.cs

+ 2
- 2
src/Discord.Net.Commands/ModuleBase.cs View File

@@ -6,9 +6,9 @@ namespace Discord.Commands
{
public CommandContext Context { get; internal set; }

protected virtual async Task ReplyAsync(string message, bool isTTS = false, RequestOptions options = null)
protected virtual async Task<IUserMessage> ReplyAsync(string message, bool isTTS = false, RequestOptions options = null)
{
await Context.Channel.SendMessageAsync(message, isTTS, options).ConfigureAwait(false);
return await Context.Channel.SendMessageAsync(message, isTTS, options).ConfigureAwait(false);
}
}
}

Loading…
Cancel
Save