fetchChannelPinnedMessages


General

fetchChannelPinnedMessages returns a list of pinned messages from the requested channel.


Usage

Client:fetchChannelPinnedMessages (<string> channelId)
Returns: <array> Data

If the channelId is invalid, this will return nil.
If there are no pinned messages in the channel, this will return an empty table.


Limitations

See discordChannel PATCH.


Example

for name,value in pairs(Client:fetchChannelPinnedMessages("569166849099694093")) do
	print(name,value)
	for name2,value2 in pairs(value) do
		print(name2,value2)
	end
end

Back to top