Skip to content

createDiscordClient

createDiscordClient(opts?): object

Defined in: clients/discord-client/dist/index.d.mts:1083

Builds the webhook client: a webhooks group that reads, posts to and deletes messages from a webhook by its id and token.

DiscordClientOptions

object

webhooks: object

deleteMessage: (id, token, messageId) => Promise<void>

string

string

string

Promise<void>

editMessage: (id, token, messageId, body) => Promise<void>

string

string

string

number

Promise<void>

execute: (id, token, content) => Promise<void>

string

string

string

Promise<void>

executeAndWait: (id, token, content, options?) => Promise<{ channel_id: string; id: string; }>

string

string

string

boolean

Promise<{ channel_id: string; id: string; }>

get: (id, token) => Promise<DiscordWebhookInfo>

string

string

Promise<DiscordWebhookInfo>