Browse Source

no more crash when somebody did a messag

main
Yessiest 2 years ago
parent
commit
283f4bf8d2
  1. 2
      libraries/classes/server-handler.lua

2
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)

Loading…
Cancel
Save