-
Notifications
You must be signed in to change notification settings - Fork 3
TextChannel
Bilal2453 edited this page Mar 26, 2022
·
3 revisions
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.
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