Update SelfCommands.cs

This commit is contained in:
samvaio 2016-11-19 14:29:39 +05:30 committed by GitHub
parent c1de7dd02b
commit 2574ad72ca

View File

@ -31,13 +31,13 @@ namespace NadekoBot.Modules.Administration
if (server == null) if (server == null)
{ {
await channel.SendMessageAsync("Cannot find that server").ConfigureAwait(false); await channel.SendMessageAsync("⚠️ Cannot find that server").ConfigureAwait(false);
return; return;
} }
if (server.OwnerId != _client.GetCurrentUser().Id) if (server.OwnerId != _client.GetCurrentUser().Id)
{ {
await server.LeaveAsync().ConfigureAwait(false); await server.LeaveAsync().ConfigureAwait(false);
await channel.SendMessageAsync("Left server " + server.Name).ConfigureAwait(false); await channel.SendMessageAsync("Left server " + server.Name).ConfigureAwait(false);
} }
else else
{ {