Closed FFranker closed 2 years ago
I'm trying to get a specific guild with guild id. I have tried this so far but it seems to be ineffective;
for guild in pairs(client.guilds.cache) do print(guild.name) end
You're looking for client:getGuild(id), documented here. Also, the best way to get help with your code is to join the Discord API or Discordia servers, rather than opening an issue on GitHub.
client:getGuild(id)
Alright thanks.
I'm trying to get a specific guild with guild id. I have tried this so far but it seems to be ineffective;
for guild in pairs(client.guilds.cache) do print(guild.name) end