Browse Source

Update ReplyAsync Task to return the sent message.

tags/1.0-rc
Sindre Langhus GitHub 8 years ago
parent
commit
0b43545ae0
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