export declare class ChannelsAPI
addMessageReaction) : Promise<void> (
Adds a reaction to a message
See also: https://discord.com/developers/docs/resources/channel#create-reaction
bulkDeleteMessages) : Promise<void> (
Bulk deletes messages
See also: https://discord.com/developers/docs/resources/channel#bulk-delete-messages
createInvitechannelId: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'>) : Promise<APIExtendedInvite> (
Creates a new invite for a channel
See also: https://discord.com/developers/docs/resources/channel#create-channel-invite
createMessagechannelId: Snowflakebody: RESTPostAPIChannelMessageJSONBody & {
files?: RawFile[];
}options?: Pick<RequestData, 'signal'>) : Promise<APIMessage> (
Sends a message in a channel
See also: https://discord.com/developers/docs/resources/channel#create-message
crosspostMessage) : Promise<APIMessage> (
Crossposts a message
See also: https://discord.com/developers/docs/resources/channel#crosspost-message
deletechannelId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<APIChannel> (
Deletes a channel
See also: https://discord.com/developers/docs/resources/channel#deleteclose-channel
deleteAllMessageReactions) : Promise<void> (
Deletes all reactions for a message
See also: https://discord.com/developers/docs/resources/channel#delete-all-reactions
deleteAllMessageReactionsForEmoji) : Promise<void> (
Deletes all reactions of an emoji for a message
See also: https://discord.com/developers/docs/resources/channel#delete-all-reactions-for-emoji
deleteMessage) : Promise<void> (
Deletes a message
See also: https://discord.com/developers/docs/resources/channel#delete-message
deleteOwnMessageReaction) : Promise<void> (
Deletes a reaction for the current user
See also: https://discord.com/developers/docs/resources/channel#delete-own-reaction
deleteUserMessageReactionchannelId: SnowflakemessageId: Snowflakeemoji: stringuserId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<void> (
Deletes a reaction for a user
See also: https://discord.com/developers/docs/resources/channel#delete-user-reaction
edit) : Promise<APIChannel> (
Edits a channel
See also: https://discord.com/developers/docs/resources/channel#modify-channel
editMessagechannelId: SnowflakemessageId: Snowflakebody: RESTPostAPIChannelMessageJSONBody & {
files?: RawFile[];
}options: Pick<RequestData, 'signal'>) : Promise<APIMessage> (
Edits a message
See also: https://discord.com/developers/docs/resources/channel#edit-message
followAnnouncements) : Promise<APIFollowedChannel> (
Follows an announcement channel
See also: https://discord.com/developers/docs/resources/channel#follow-announcement-channel
getchannelId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<APIChannel> (
Fetches a channel
See also: https://discord.com/developers/docs/resources/channel#get-channel
getArchivedThreads) : Promise<RESTGetAPIChannelUsersThreadsArchivedResult> (
Fetches the archived threads of a channel
See also: https://discord.com/developers/docs/resources/channel#list-public-archived-threadshttps://discord.com/developers/docs/resources/channel#list-private-archived-threads
getInviteschannelId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<RESTGetAPIChannelInvitesResult> (
Fetches the invites of a channel
See also: https://discord.com/developers/docs/resources/channel#get-channel-invites
getJoinedPrivateArchivedThreadschannelId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<RESTGetAPIChannelUsersThreadsArchivedResult> (
Fetches the private joined archived threads of a channel
See also: https://discord.com/developers/docs/resources/channel#list-joined-private-archived-threads
getMessage) : Promise<APIMessage> (
Fetches a message
See also: https://discord.com/developers/docs/resources/channel#get-channel-message
getMessageReactions) : Promise<RESTGetAPIChannelMessageReactionUsersResult> (
Fetches the reactions for a message
See also: https://discord.com/developers/docs/resources/channel#get-reactions
getMessages) : Promise<RESTGetAPIChannelMessagesResult> (
Fetches the messages of a channel
See also: https://discord.com/developers/docs/resources/channel#get-channel-messages
getPinschannelId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<RESTGetAPIChannelPinsResult> (
Fetches the pinned messages of a channel
See also: https://discord.com/developers/docs/resources/channel#get-pinned-messages
getWebhooksid: Snowflake) : Promise<RESTGetAPIChannelWebhooksResult> (
Fetches the webhooks of a channel
See also: https://discord.com/developers/docs/resources/webhook#get-channel-webhooks
pinMessage) : Promise<void> (
Pins a message in a channel
See also: https://discord.com/developers/docs/resources/channel#pin-message
showTypingchannelId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<void> (
Shows a typing indicator in a channel
See also: https://discord.com/developers/docs/resources/channel#trigger-typing-indicator
unpinMessage) : Promise<void> (
Unpins a message in a channel
See also: https://discord.com/developers/docs/resources/channel#unpin-message