From 283f4bf8d20481accf81b56a80ea3c0d0a4190b0 Mon Sep 17 00:00:00 2001 From: Yessiest Date: Wed, 6 Apr 2022 19:28:13 +0400 Subject: [PATCH] no more crash when somebody did a messag --- libraries/classes/server-handler.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/classes/server-handler.lua b/libraries/classes/server-handler.lua index 4f0d25d..8594861 100644 --- a/libraries/classes/server-handler.lua +++ b/libraries/classes/server-handler.lua @@ -65,7 +65,7 @@ function server_handler:__init(client,guild,options) end) end self.client:on("messageCreate",function(msg) - if msg.guild.id == self.id then + if msg.guild and msg.guild.id == self.id then self.command_handler:handle(msg) end end)