fetchGuildBans


General

fetchGuildBans fetches the guild's bans.


Usage

Client:fetchGuildBans()
Returns: <array> data

Data array contains User objects inside.


Limitations

See discordGuild PATCH.


Example

local usersBanned = {}
for id in pairs(Client:fetchGuildBans()) do
	table.insert(usersBanned, id)
end

print(#usersBanned)

Back to top