getChannels

General

getChannels returns the data of all channels in a guild, in ascending or descending order.


Usage

Client:getChannels((number) chunkID, (boolean) ascending)
Returns: <array> channels

Returned array contains Channel objects.


Limitations

See discordChannel GET.


Example

for _, channel in pairs(Client:getChannels()) do
	print(channel.name)
end

getChannels.PNG

Back to top