mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
docs: WebSocketShard#send and TextBasedChannel#send (#5998)
This commit is contained in:
@@ -106,7 +106,7 @@ class TextBasedChannel {
|
|||||||
/**
|
/**
|
||||||
* Sends a message to this channel.
|
* Sends a message to this channel.
|
||||||
* @param {string|MessagePayload|MessageOptions} options The options to provide
|
* @param {string|MessagePayload|MessageOptions} options The options to provide
|
||||||
* @returns {Promise<Message|Message[]>}
|
* @returns {Promise<Message>}
|
||||||
* @example
|
* @example
|
||||||
* // Send a basic message
|
* // Send a basic message
|
||||||
* channel.send('hello!')
|
* channel.send('hello!')
|
||||||
|
|||||||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -2277,7 +2277,7 @@ declare module 'discord.js' {
|
|||||||
private _cleanupConnection(): void;
|
private _cleanupConnection(): void;
|
||||||
private _emitDestroyed(): void;
|
private _emitDestroyed(): void;
|
||||||
|
|
||||||
public send(data: unknown): void;
|
public send(data: unknown, important?: boolean): void;
|
||||||
|
|
||||||
public on(event: 'ready' | 'resumed' | 'invalidSession', listener: () => Awaited<void>): this;
|
public on(event: 'ready' | 'resumed' | 'invalidSession', listener: () => Awaited<void>): this;
|
||||||
public on(event: 'close', listener: (event: CloseEvent) => Awaited<void>): this;
|
public on(event: 'close', listener: (event: CloseEvent) => Awaited<void>): this;
|
||||||
|
|||||||
Reference in New Issue
Block a user