export declare class ChannelsAPI
Adds a reaction to a message
See also: https://discord.com/developers/docs/resources/channel#create-reaction
Bulk deletes messages
See also: https://discord.com/developers/docs/resources/channel#bulk-delete-messages
createInvite) : Promise<APIExtendedInvite> (
Creates a new invite for a channel
See also: https://discord.com/developers/docs/resources/channel#create-channel-invite
createMessagechannelId: Snowflakedata: RESTPostAPIChannelMessageJSONBody & {
files?: RawFile[];
}) : 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: Snowflake) : Promise<APIChannel> (
Deletes a channel
See also: https://discord.com/developers/docs/resources/channel#deleteclose-channel
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
Deletes a message
See also: https://discord.com/developers/docs/resources/channel#delete-message
Deletes a reaction for the current user
See also: https://discord.com/developers/docs/resources/channel#delete-own-reaction
deleteUserMessageReaction) : Promise<void> (
Deletes a reaction for a user
See also: https://discord.com/developers/docs/resources/channel#delete-user-reaction
editchannelId: Snowflake) : Promise<APIChannel> (
Edits a channel
See also: https://discord.com/developers/docs/resources/channel#modify-channel
editMessagechannelId: SnowflakemessageId: Snowflakedata: RESTPostAPIChannelMessageJSONBody & {
files?: RawFile[];
}) : 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: Snowflake) : Promise<APIChannel> (
Fetches a channel
See also: https://discord.com/developers/docs/resources/channel#get-channel
getArchivedThreadschannelId: SnowflakearchivedStatus: 'private' | 'public'options?: RESTGetAPIChannelThreadsArchivedQuery) : 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: Snowflake) : Promise<RESTGetAPIChannelInvitesResult> (
Fetches the invites of a channel
See also: https://discord.com/developers/docs/resources/channel#get-channel-invites
getJoinedPrivateArchivedThreadschannelId: Snowflakeoptions?: RESTGetAPIChannelThreadsArchivedQuery) : 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
getMessageschannelId: Snowflakeoptions?: RESTGetAPIChannelMessagesQuery) : Promise<RESTGetAPIChannelMessagesResult> (
Fetches the messages of a channel
See also: https://discord.com/developers/docs/resources/channel#get-channel-messages
getPinschannelId: Snowflake) : 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
Pins a message in a channel
See also: https://discord.com/developers/docs/resources/channel#pin-message
Shows a typing indicator in a channel
See also: https://discord.com/developers/docs/resources/channel#trigger-typing-indicator
Unpins a message in a channel
See also: https://discord.com/developers/docs/resources/channel#unpin-message