- Preparing search index...
- The search index is not available
Oceanic
Methods
delete
- delete(webhookID: string, reason?: string): Promise<void>
-
Parameters
-
webhookID: string
-
Optional
reason: string
Returns Promise<void>
deleteMessage
- deleteMessage(webhookID: string, token: string, messageID: string, options?: DeleteWebhookMessageOptions): Promise<void>
-
Parameters
-
webhookID: string
-
token: string
-
messageID: string
-
Returns Promise<void>
deleteToken
- deleteToken(webhookID: string, token: string): Promise<void>
-
Parameters
-
webhookID: string
-
token: string
Returns Promise<void>
editMessage
- editMessage<T>(webhookID: string, token: string, messageID: string, options: EditWebhookMessageOptions): Promise<Message<T>>
-
Parameters
-
webhookID: string
-
token: string
-
messageID: string
-
Returns Promise<Message<T>>
execute
- execute<T>(webhookID: string, token: string, options: ExecuteWebhookWaitOptions): Promise<Message<T>>
-
Parameters
-
webhookID: string
-
token: string
-
Returns Promise<Message<T>>
- execute(webhookID: string, token: string, options: ExecuteWebhookOptions): Promise<void>
-
Parameters
-
webhookID: string
-
token: string
-
Returns Promise<void>
executeGithub
- executeGithub(webhookID: string, token: string, options: Record<string, unknown> & {
wait: false;
}): Promise<void>
-
Parameters
-
webhookID: string
-
token: string
-
options: Record<string, unknown> & {
wait: false;
}
Returns Promise<void>
- executeGithub<T>(webhookID: string, token: string, options: Record<string, unknown> & {
wait?: true;
}): Promise<Message<T>>
-
Parameters
-
webhookID: string
-
token: string
-
options: Record<string, unknown> & {
wait?: true;
}
Returns Promise<Message<T>>
executeSlack
- executeSlack(webhookID: string, token: string, options: Record<string, unknown> & {
wait: false;
}): Promise<void>
-
Parameters
-
webhookID: string
-
token: string
-
options: Record<string, unknown> & {
wait: false;
}
Returns Promise<void>
- executeSlack<T>(webhookID: string, token: string, options: Record<string, unknown> & {
wait?: true;
}): Promise<Message<T>>
-
Parameters
-
webhookID: string
-
token: string
-
options: Record<string, unknown> & {
wait?: true;
}
Returns Promise<Message<T>>
get
- get(webhookID: string, token?: string): Promise<Webhook>
-
Parameters
-
webhookID: string
-
Optional
token: string
Returns Promise<Webhook>
getForChannel
- getForChannel(channelID: string): Promise<Webhook[]>
-
Returns Promise<Webhook[]>
getForGuild
- getForGuild(guildID: string): Promise<Webhook[]>
-
Returns Promise<Webhook[]>
getMessage
- getMessage<T>(webhookID: string, token: string, messageID: string, threadID?: string): Promise<Message<T>>
-
Parameters
-
webhookID: string
-
token: string
-
messageID: string
-
Optional
threadID: string
Returns Promise<Message<T>>
Various methods for interacting with webhooks.