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

Update ReplyAsync Task to return the sent message.
This commit is contained in:
RogueException
2016-10-25 03:37:06 -03:00
committed by GitHub

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);
}
}
}