Methods
bulkDelete
- bulkDelete(channelId: string, messageIds: string[]): Promise<never>
-
Parameters
-
channelId: string
-
messageIds: string[]
Returns Promise<never>
crosspost
- crosspost(channelId: string, messageId: string): Promise<APIMessage>
-
Parameters
-
channelId: string
-
messageId: string
Returns Promise<APIMessage>
delete
- delete(channelId: string, messageId: string): Promise<never>
-
Parameters
-
channelId: string
-
messageId: string
Returns Promise<never>
deleteAllReactions
- deleteAllReactions(channelId: string, messageId: string, emoji?: string): Promise<never>
-
Parameters
-
channelId: string
-
messageId: string
-
Optional emoji: string
Returns Promise<never>
deleteReaction
- deleteReaction(channelId: string, messageId: string, emoji: string, user?: string): Promise<never>
-
Parameters
-
channelId: string
-
messageId: string
-
emoji: string
-
user: string = '@me'
Returns Promise<never>
edit
- edit(channelId: string, messageId: string, data: MessageTypes): Promise<APIMessage>
-
Parameters
-
channelId: string
-
messageId: string
-
Returns Promise<APIMessage>
get
- get(channelId: string, messageId: string): Promise<APIMessage>
-
Parameters
-
channelId: string
-
messageId: string
Returns Promise<APIMessage>
getReactions
- getReactions(channelId: string, messageId: string, emoji: string, query?: RESTGetAPIChannelMessageReactionUsersQuery): Promise<RESTGetAPIChannelMessageReactionUsersResult>
-
Parameters
-
channelId: string
-
messageId: string
-
emoji: string
-
Optional query: RESTGetAPIChannelMessageReactionUsersQuery
Returns Promise<RESTGetAPIChannelMessageReactionUsersResult>
react
- react(channelId: string, messageId: string, emoji: string): Promise<never>
-
Parameters
-
channelId: string
-
messageId: string
-
emoji: string
Returns Promise<never>
send
- send(channelId: string, data: MessageTypes, reply?: APIMessageReferenceSend): Promise<APIMessage>
-
Parameters
-
channelId: string
-
-
Optional reply: APIMessageReferenceSend
Returns Promise<APIMessage>
sendFile
- sendFile(channelId: string, data: { buffer: Buffer; name: string }, extra?: MessageTypes): Promise<APIMessage>
-
Parameters
-
channelId: string
-
data: { buffer: Buffer; name: string }
-
buffer: Buffer
-
name: string
-
Returns Promise<APIMessage>
Static _formMessage
- _formMessage(message: MessageTypes, webhook?: boolean): RESTPostAPIChannelMessageJSONBody | RESTPostAPIWebhookWithTokenJSONBody | APIInteractionResponseCallbackData
-
Parameters
-
-
Optional webhook: boolean
Returns RESTPostAPIChannelMessageJSONBody | RESTPostAPIWebhookWithTokenJSONBody | APIInteractionResponseCallbackData
Message resource