Skip to content

Message

HTTP Rest API implementation for the following Resource:

Summary

Functions

Message.getChannelMessagesAsync(instance: request.Request, channelId: string, urlParams: { around: apiTypes.Snowflake?, before: apiTypes.Snowflake?, after: apiTypes.Snowflake?, limit: number?, })future.FutureLike<string, apiTypes.GetChannelMessagesResponse>Message.getChannelMessageAsync(instance: request.Request, channelId: string, messageId: apiTypes.Snowflake)future.FutureLike<string, apiTypes.GetChannelMessageResponse>Message.createMessageAsync(instance: request.Request, channelId: string, jsonParams: apiTypes.CreateMessageRequest)future.FutureLike<string, apiTypes.CreateMessageResponse>Message.crosspostMessageAsync(instance: request.Request, channelId: string, messageId: string)future.FutureLike<string, apiTypes.CrosspostMessageResponse>Message.createReactionAsync(instance: request.Request, channelId: string, messageId: apiTypes.Snowflake, emoji: string)future.FutureLike<string, apiTypes.CreateReactionResponse>Message.deleteOwnReactionAsync(instance: request.Request, channelId: string, messageId: apiTypes.Snowflake, emoji: string)future.FutureLike<string, apiTypes.DeleteOwnReactionResponse>Message.deleteUserReactionAsync(instance: request.Request, channelId: string, messageId: apiTypes.Snowflake, emoji: string, userId: apiTypes.Snowflake)future.FutureLike<string, apiTypes.DeleteUserReactionResponse>Message.getReactionsAsync(instance: request.Request, channelId: string, messageId: apiTypes.Snowflake, emoji: string, urlParams: { type: (&quot;Normal&quot; | &quot;Burst&quot;)?, after: apiTypes.Snowflake?, limit: number?, })future.FutureLike<string, apiTypes.GetReactionsResponse>Message.deleteAllReactionsAsync(instance: request.Request, channelId: string, messageId: apiTypes.Snowflake)future.FutureLike<string, apiTypes.DeleteAllReactionsResponse>Message.deleteAllReactionsForEmojiAsync(instance: request.Request, channelId: string, messageId: apiTypes.Snowflake, emoji: string)future.FutureLike<string, apiTypes.DeleteAllReactionsForEmojiResponse>Message.editMessageAsync(instance: request.Request, channelId: string, messageId: apiTypes.Snowflake, jsonParams: apiTypes.EditMessageRequest)future.FutureLike<string, apiTypes.EditMessageResponse>Message.deleteMessageAsync(instance: request.Request, channelId: string, messageId: apiTypes.Snowflake, auditLogReason: string?)future.FutureLike<string, apiTypes.DeleteMessageResponse>Message.bulkDeleteMessagesAsync(instance: request.Request, channelId: string, jsonParams: apiTypes.BulkDeleteMessagesRequest, auditLogReason: string?)future.FutureLike<string, apiTypes.BulkDeleteMessageResponse>
Message . getChannelMessagesAsync ( instance channelId urlParams )  -> FutureLike<string, GetChannelMessagesResponse>

https://discord.com/developers/docs/resources/message#get-channel-messages

Parameters

instance: Request
channelId: string
urlParams: {
around: apiTypes.Snowflake?,
before: apiTypes.Snowflake?,
after: apiTypes.Snowflake?,
limit: number?,
}
Message . getChannelMessageAsync ( instance channelId messageId )  -> FutureLike<string, GetChannelMessageResponse>

https://discord.com/developers/docs/resources/message#get-channel-message

Parameters

instance: Request
channelId: string
messageId: Snowflake
Message . createMessageAsync ( instance channelId jsonParams )  -> FutureLike<string, CreateMessageResponse>

https://discord.com/developers/docs/resources/message#create-message

Parameters

instance: Request
channelId: string
jsonParams: CreateMessageRequest
Message . crosspostMessageAsync ( instance channelId messageId )  -> FutureLike<string, CrosspostMessageResponse>

https://discord.com/developers/docs/resources/message#crosspost-message

Parameters

instance: Request
channelId: string
messageId: string
Message . createReactionAsync ( instance channelId messageId emoji )  -> FutureLike<string, CreateReactionResponse>

https://discord.com/developers/docs/resources/message#create-reaction

Parameters

instance: Request
channelId: string
messageId: Snowflake
emoji: string
Message . deleteOwnReactionAsync ( instance channelId messageId emoji )  -> FutureLike<string, DeleteOwnReactionResponse>

https://discord.com/developers/docs/resources/message#delete-own-reaction

Parameters

instance: Request
channelId: string
messageId: Snowflake
emoji: string
Message . deleteUserReactionAsync ( instance channelId messageId emoji userId )  -> FutureLike<string, DeleteUserReactionResponse>

https://discord.com/developers/docs/resources/message#delete-user-reaction

Parameters

instance: Request
channelId: string
messageId: Snowflake
emoji: string
userId: Snowflake
Message . getReactionsAsync ( instance channelId messageId emoji urlParams )  -> FutureLike<string, GetReactionsResponse>

https://discord.com/developers/docs/resources/message#get-reactions

Parameters

instance: Request
channelId: string
messageId: Snowflake
emoji: string
urlParams: {
type: (&quot;Normal&quot; | &quot;Burst&quot;)?,
after: apiTypes.Snowflake?,
limit: number?,
}
Message . deleteAllReactionsAsync ( instance channelId messageId )  -> FutureLike<string, DeleteAllReactionsResponse>

https://discord.com/developers/docs/resources/message#delete-all-reactions

Parameters

instance: Request
channelId: string
messageId: Snowflake
Message . deleteAllReactionsForEmojiAsync ( instance channelId messageId emoji )  -> FutureLike<string, DeleteAllReactionsForEmojiResponse>

https://discord.com/developers/docs/resources/message#delete-all-reactions-for-emoji

Parameters

instance: Request
channelId: string
messageId: Snowflake
emoji: string
Message . editMessageAsync ( instance channelId messageId jsonParams )  -> FutureLike<string, EditMessageResponse>

https://discord.com/developers/docs/resources/message#edit-message

Parameters

instance: Request
channelId: string
messageId: Snowflake
jsonParams: EditMessageRequest
Message . deleteMessageAsync ( instance channelId messageId auditLogReason )  -> FutureLike<string, DeleteMessageResponse>

https://discord.com/developers/docs/resources/message#delete-message

Parameters

instance: Request
channelId: string
messageId: Snowflake
auditLogReason: string?
Message . bulkDeleteMessagesAsync ( instance channelId jsonParams auditLogReason )  -> FutureLike<string, BulkDeleteMessageResponse>

https://discord.com/developers/docs/resources/message#bulk-delete-messages

Parameters

instance: Request
channelId: string
jsonParams: BulkDeleteMessagesRequest
auditLogReason: string?