Attempt to call field 'contains' (a nil value) | How can I check the table to see if it has a server?
问题 What I am trying (Discord Bot) is to make a command called !say serverID channelID arg The point of this command is that I will pm the bot with this command and the bot writes the arg in the defined channelID from the server. Library (litcord) : https://github.com/satom99/litcord A part of the code (Yes, this has issues...) : local server = client.servers:getAll('id', serverID) if server then if server.contains('id', serverID) then for _, serverID in pairs(server) do if serverID == serverID