mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Merge branch 'v4' into 4.3
This commit is contained in:
@@ -319,11 +319,14 @@ public class XpService : INService, IReadyExecutor, IExecNoCommand
|
||||
long newLevel,
|
||||
XpNotificationLocation notifyLoc)
|
||||
{
|
||||
var user = await _client.GetUserAsync(userId);
|
||||
if (notifyLoc == XpNotificationLocation.None)
|
||||
return;
|
||||
|
||||
var guild = _client.GetGuild(guildId);
|
||||
var user = guild?.GetUser(userId);
|
||||
var ch = guild?.GetTextChannel(channelId);
|
||||
|
||||
if (user is null || guild is null)
|
||||
if (guild is null || user is null)
|
||||
return;
|
||||
|
||||
if (isServer)
|
||||
|
Reference in New Issue
Block a user