sortChannels

General

sortChannels returns all the channels in a guild, but by the given property. Like with the getChannels, the output can be sorted in ascending or descending order.


Usage

Client:sortChannels(<string> property, (number) chunkID, (boolean) ascending)
Returns: <array> channels

Returned array contains Channel objects.


Limitations

See discordChannel GET.


Example

for _, channel in pairs(Client:sortChannels("lastMessageID")) do
	print(channel.name)
end

sortChannels.PNG

Back to top