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

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