TextChannel - Bilal2453/discordia-components Wiki

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, comp)

Parameter Type
content string/table
comp Components-Resolvable/table

Sends a new message with provided components attached to it. content is equivalent to TextChannel:send(content). components can be any Components Resolvable, or a raw table that represents a Discord Component.

Returns the newly sent Message.

This method always makes an HTTP request.

Returns: Message