TextChannel - Bilal2453/discordia-components GitHub Wiki

A patched version of the Discordia TextChannel class and its inherited classes; namely GuildTextChannel and PrivateChannel.

This is a patched class. For full usage refer to the Discordia Wiki, only patched methods and properities are documented here.

Methods

sendComponents(content, components)

Parameter Type Optional
content string/table
components Components-Resolvable/table

Sends a new message with provided components attached to it. content is equivalent to TextChannel:send(content) except it supports all Discord fields. components can be any Components Resolvable, or a raw table that represents a Discord Component. Components must be provided either by providing components argument, or by providing contnet.components.

Returns the newly sent Message.

This method always makes an HTTP request.

Returns: Message