mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-11-23 10:19:39 +00:00
fix potential issue in the event handler
This commit is contained in:
parent
01b46aff91
commit
5134fc6dd7
@ -29,7 +29,7 @@ namespace CompatBot.EventHandlers
|
||||
return;
|
||||
|
||||
#if !DEBUG
|
||||
if (!args.Channel.Name.Equals("help", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (!"help".Equals(args?.Channel?.Name, StringComparison.InvariantCultureIgnoreCase))
|
||||
return;
|
||||
|
||||
if (DateTime.UtcNow - lastMention < ThrottlingThreshold)
|
||||
|
Loading…
Reference in New Issue
Block a user