Just a bit better formatting.

This commit is contained in:
Kwoth 2017-02-03 10:01:29 +01:00
parent 9d5c977b48
commit 8791bc55f5

View File

@ -173,14 +173,10 @@ namespace NadekoBot.Modules.Administration
[OwnerOnly] [OwnerOnly]
public async Task ReloadImages() public async Task ReloadImages()
{ {
var msg = await Context.Channel.SendMessageAsync("Reloading Images...").ConfigureAwait(false);
var sw = Stopwatch.StartNew(); var sw = Stopwatch.StartNew();
await NadekoBot.Images.Reload().ConfigureAwait(false); await NadekoBot.Images.Reload().ConfigureAwait(false);
sw.Stop(); sw.Stop();
await msg.ModifyAsync(x => await Context.Channel.SendConfirmAsync("Images Reloaded").ConfigureAwait(false);
{
x.Content = "✅ Images reloaded.";
}).ConfigureAwait(false);
} }
private static UserStatus SettableUserStatusToUserStatus(SettableUserStatus sus) private static UserStatus SettableUserStatusToUserStatus(SettableUserStatus sus)