mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-11-23 10:19:39 +00:00
try to fix some issues
This commit is contained in:
parent
d5d251e6c2
commit
252d2b47f6
@ -31,7 +31,7 @@ namespace CompatBot.EventHandlers
|
||||
|
||||
public static async Task OnMessageCreated(MessageCreateEventArgs args)
|
||||
{
|
||||
if (DefaultHandlerFilter.IsFluff(args.Message))
|
||||
if (DefaultHandlerFilter.IsFluff(args?.Message))
|
||||
return;
|
||||
|
||||
#if !DEBUG
|
||||
|
@ -25,7 +25,7 @@ namespace CompatBot.EventHandlers
|
||||
|
||||
public static async Task OnMessageCreated(MessageCreateEventArgs args)
|
||||
{
|
||||
if (DefaultHandlerFilter.IsFluff(args.Message))
|
||||
if (DefaultHandlerFilter.IsFluff(args?.Message))
|
||||
return;
|
||||
|
||||
#if !DEBUG
|
||||
|
@ -7,6 +7,9 @@ namespace CompatBot.Utils
|
||||
{
|
||||
internal static bool IsFluff(DiscordMessage message)
|
||||
{
|
||||
if (message == null)
|
||||
return true;
|
||||
|
||||
if (message.Author.IsBotSafeCheck())
|
||||
return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user