Are you an LLM? You can read better optimized documentation at /en/message-templates/types/discord/text-channel.md for this page in Markdown format
TextChannel
This data type describes all available data about the text channel.
Properties
| Property | Type | Description |
|---|---|---|
id | Number | Unique identifier |
createdAt | DateTime | Creation date and time |
name | String | Channel name |
type | String | Channel type |
mention | String | Mention |
guild | Guild | Server information |
position | Number | Position number in channel list (1 is top of the list) |
parent | Category | Category if exists |
nsfw | Boolean | true if this channel is age restricted |
topic | String | Description (Topic) |
canTalk | Boolean | true if bot can send messages in this channel |
Methods
getMessageById(ID)
Returns a message object for specified message ID.
Returns: Message
Warning! Quota
This method can only be invoked 1 times in the same template.
sendMessage(Text)
Sends a simple text message to this channel. Returns true if message has been sent.
Returns: Boolean
Warning! Quota
Following methods have shared quota and can only be invoked 2 times in the same template:
sendMessagesendMessageAndGetEmbed#sendEmbed#sendAndGetEmbed#updateEmbed#updateAndGet
sendMessageAndGet(Text)
Sends a simple text message to this channel. Returns result message object if message has been sent.
Returns: Boolean
Warning! Quota
Following methods have shared quota and can only be invoked 2 times in the same template:
sendMessagesendMessageAndGetEmbed#sendEmbed#sendAndGetEmbed#updateEmbed#updateAndGet