TextChannel¶
Inherits: Channel < MentionableEntity < DiscordEntity < Reference < Object
Inherited By: Guild.BaseGuildTextChannel, Guild.GuildVoiceText, Message, PrivateChannel
Description¶
Represents a channel on Discord that accepts text messages.
Properties¶
type | name |
---|---|
int | last_message_id |
TextChannel.BaseMessage | last_message |
int | last_pin_timestamp |
Methods¶
return type | signature |
---|---|
TextChannel.BaseMessage | send_message ( String content, bool tts=false, Array embeds=[ ] ) coroutine |
MessageCreateAction | create_message ( String content="" ) |
Array | fetch_messages ( ChannelFetchMessgesParams data=null ) coroutine |
TextChannel.BaseMessage | fetch_message ( int message_id ) coroutine |
TextChannel.BaseMessage | fetch_last_message ( ) coroutine |
bool | delete_messages ( PoolStringArray message_ids ) coroutine |
TextChannel.BaseMessage | get_last_message ( ) |
Property Descriptions¶
-
int last_message_id
The last message id in the channel.
-
TextChannel.BaseMessage last_message
method Getter get_last_message() The last message sent in the channel.
-
int last_pin_timestamp
Unix time of the last pin of a message in the channel.
Method Descriptions¶
-
TextChannel.BaseMessage send_message ( String content, bool tts=false, Array embeds=[ ] ) coroutine
Sends a message to this channel.
embeds
takes a list ofMessageEmbedBuilder
s
-
MessageCreateAction create_message ( String content="" )
There is currently no description for this method.
-
Array fetch_messages ( ChannelFetchMessgesParams data=null ) coroutine
Fetches messages sent in this channel.
-
TextChannel.BaseMessage fetch_message ( int message_id ) coroutine
Fetches a message sent in this channel.
-
TextChannel.BaseMessage fetch_last_message ( ) coroutine
Fetches the last sent message in this channel.
-
bool delete_messages ( PoolStringArray message_ids ) coroutine
Deletes a bulk of messages in this channel.
-
TextChannel.BaseMessage get_last_message ( )
Gets the last message in this channel from the cache.
Sub Classes¶
BaseMessage¶
Inherits: DiscordEntity < Reference < Object
Description¶
Abstract base class of a message on Discord.
Properties¶
type | name |
---|---|
int | channel_id |
TextChannel | channel |
Methods¶
return type | signature |
---|---|
TextChannel | get_channel ( ) |
Property Descriptions¶
-
int channel_id
Channel id of the message.
-
TextChannel channel
method Getter get_channel() The channel the message was sent in.
Method Descriptions¶
-
TextChannel get_channel ( )
channel
getter.