no more crash when somebody did a messag
This commit is contained in:
parent
7bc7ef9549
commit
283f4bf8d2
|
@ -65,7 +65,7 @@ function server_handler:__init(client,guild,options)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
self.client:on("messageCreate",function(msg)
|
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)
|
self.command_handler:handle(msg)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue