mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -04:00
Bot should no longer always notify server level gains
This commit is contained in:
@@ -318,8 +318,11 @@ public class XpService : INService, IReadyExecutor, IExecNoCommand
|
|||||||
long newLevel,
|
long newLevel,
|
||||||
XpNotificationLocation notifyLoc)
|
XpNotificationLocation notifyLoc)
|
||||||
{
|
{
|
||||||
var user = await _client.GetUserAsync(userId);
|
if (notifyLoc == XpNotificationLocation.None)
|
||||||
|
return;
|
||||||
|
|
||||||
var guild = _client.GetGuild(guildId);
|
var guild = _client.GetGuild(guildId);
|
||||||
|
var user = guild?.GetUser(userId);
|
||||||
var ch = guild?.GetTextChannel(channelId);
|
var ch = guild?.GetTextChannel(channelId);
|
||||||
|
|
||||||
if (user is null || guild is null)
|
if (user is null || guild is null)
|
||||||
|
Reference in New Issue
Block a user