declare class ChannelsAPI
Adds a reaction to a message
Bulk deletes messages
createInvite) : Promise<discord_api_types_v10.APIExtendedInvite> (
Creates a new invite for a channel
createMessagechannelId: Snowflakedata: RESTPostAPIChannelMessageJSONBody & {
files?: RawFile[];
}) : Promise<discord_api_types_v10.APIMessage> (
channelId: Snowflake
data: RESTPostAPIChannelMessageJSONBody & {
files?: RawFile[];
}
Sends a message in a channel
crosspostMessage) : Promise<discord_api_types_v10.APIMessage> (
Crossposts a message
deletechannelId: Snowflake) : Promise<discord_api_types_v10.APIChannel> (
channelId: Snowflake
Deletes a channel
Deletes all reactions for a message
deleteAllMessageReactionsForEmoji) : Promise<void> (
Deletes all reactions of an emoji for a message
Deletes a message
Deletes a reaction for the current user
deleteUserMessageReaction) : Promise<void> (
Deletes a reaction for a user
editchannelId: Snowflake) : Promise<discord_api_types_v10.APIChannel> (
channelId: Snowflake
Edits a channel
editMessagechannelId: SnowflakemessageId: Snowflakedata: RESTPostAPIChannelMessageJSONBody & {
files?: RawFile[];
}) : Promise<discord_api_types_v10.APIMessage> (
channelId: Snowflake
messageId: Snowflake
data: RESTPostAPIChannelMessageJSONBody & {
files?: RawFile[];
}
Edits a message
followAnnouncements) : Promise<discord_api_types_v10.APIFollowedChannel> (
Follows an announcement channel
getchannelId: Snowflake) : Promise<discord_api_types_v10.APIChannel> (
channelId: Snowflake
Fetches a channel
getArchivedThreadschannelId: SnowflakearchivedStatus: 'private' | 'public'options?: RESTGetAPIChannelThreadsArchivedQuery) : Promise<RESTGetAPIChannelUsersThreadsArchivedResult> (
channelId: Snowflake
archivedStatus: 'private' | 'public'
options?: RESTGetAPIChannelThreadsArchivedQuery
Fetches the archived threads of a channel
getInviteschannelId: Snowflake) : Promise<RESTGetAPIChannelInvitesResult> (
channelId: Snowflake
Fetches the invites of a channel
getJoinedPrivateArchivedThreadschannelId: Snowflakeoptions?: RESTGetAPIChannelThreadsArchivedQuery) : Promise<RESTGetAPIChannelUsersThreadsArchivedResult> (
channelId: Snowflake
options?: RESTGetAPIChannelThreadsArchivedQuery
Fetches the private joined archived threads of a channel
getMessage) : Promise<discord_api_types_v10.APIMessage> (
Fetches a message
getMessageReactions) : Promise<RESTGetAPIChannelMessageReactionUsersResult> (
Fetches the reactions for a message
getMessageschannelId: Snowflakeoptions?: RESTGetAPIChannelMessagesQuery) : Promise<RESTGetAPIChannelMessagesResult> (
channelId: Snowflake
options?: RESTGetAPIChannelMessagesQuery
Fetches the messages of a channel
getPinschannelId: Snowflake) : Promise<RESTGetAPIChannelPinsResult> (
channelId: Snowflake
Fetches the pinned messages of a channel
Pins a message in a channel