Update SelfCommands.cs
This commit is contained in:
parent
c1de7dd02b
commit
2574ad72ca
@ -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
|
||||||
{
|
{
|
||||||
@ -47,4 +47,4 @@ namespace NadekoBot.Modules.Administration
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user