export Class
ForumTopic ​
extends ​
ChatBase
<ForumTopic
, SerializedForumTopicPacket
>
implements ​
Constructor ​
ts
new ForumTopic( client, packet )
Parameter | Type | Description |
---|---|---|
client | Client | |
packet | SerializedForumTopicPacket |
Properties ​
get chat : SuperGroupChat
​
get id : number
​
readonly client : Client
​
icon_color : number
​
icon_custom_emoji_id : string
​
message_thread_id : number
​
name : string
​
type : ForumType
​
Methods ​
asyncclose( ) ​
Returns: Promise
<boolean
>
createMessageCollector( options ) ​
Creates a message collector to the current chat.
Parameter | Type | Description |
---|---|---|
options | MessageCollectorOptions | The options for the collector. |
Returns: MessageCollector
asyncdelete( ) ​
Returns: Promise
<boolean
>
asyncedit( name, icon_custom_emoji_id ) ​
Parameter | Type | Description |
---|---|---|
name? | string | |
icon_custom_emoji_id? | string |
Returns: Promise
<boolean
>
asyncreopen( ) ​
Returns: Promise
<boolean
>
asyncsend( method, packet, form_data ) ​
Sends a message to the current channel.
Parameter | Type | Description |
---|---|---|
method | MessagePayloadMethod | The method of the message. |
packet | MessagePayload | The packet of what the message will contain. |
form_data? | FormDataBuilder | The form data for uploading media, see also File |
Returns: Promise
<Message
>
asyncsendInvoice( id ) ​
Sends the stored invoice with the id to the current chat.
Parameter | Type | Description |
---|---|---|
id | string | The id of the invoice. |
Returns: Promise
<void
| Message
>
asyncsendText( text ) ​
Sends a text message to the current chat.
Parameter | Type | Description |
---|---|---|
text | string | The text content of the message. |
Returns: Promise
<Message
>
asyncunpinAll( ) ​
Returns: Promise
<boolean
>