From 0b43545ae0f4dd71ecfd8c270512bc47634f47d5 Mon Sep 17 00:00:00 2001 From: Sindre Langhus Date: Sun, 23 Oct 2016 23:55:09 +0200 Subject: [PATCH] Update ReplyAsync Task to return the sent message. --- src/Discord.Net.Commands/ModuleBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Discord.Net.Commands/ModuleBase.cs b/src/Discord.Net.Commands/ModuleBase.cs index c8d56f819..c5b6d7436 100644 --- a/src/Discord.Net.Commands/ModuleBase.cs +++ b/src/Discord.Net.Commands/ModuleBase.cs @@ -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 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); } } }