export declare class ChannelsAPIaddGroupDMRecipient() : Promise<void>
Adds a recipient to a group DM channel
See also: https://discord.com/developers/docs/resources/channel#group-dm-add-recipient
Adds a reaction to a message
// Unicode.
await api.channels.addMessageReaction('1234567890', '1234567890', '👍');
// Custom emoji.
await api.channels.addMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890');See also: https://discord.com/developers/docs/resources/message#create-reaction
bulkDeleteMessages(channelId: SnowflakemessageIds: Snowflake[]options?: Pick<RequestData, 'auth' | 'reason' | 'signal'>) : Promise<void>
Bulk deletes messages
See also: https://discord.com/developers/docs/resources/message#bulk-delete-messages
createForumThread(channelId: Snowflakebody: StartForumThreadOptionsoptions?: Pick<RequestData, 'auth' | 'reason' | 'signal'>) : Promise<APIThreadChannel<ThreadChannelType>>
Creates a new forum post
See also: https://discord.com/developers/docs/resources/channel#start-thread-in-forum-or-media-channel
createInvite(channelId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'reason' | 'signal'>) : Promise<APIExtendedInvite>
Creates a new invite for a channel
See also: https://discord.com/developers/docs/resources/channel#create-channel-invite
createMessage() : Promise<APIMessage>
Sends a message in a channel
See also: https://discord.com/developers/docs/resources/message#create-message
createThread() : Promise<RESTPostAPIChannelThreadsResult>
Creates a new thread
See also: https://discord.com/developers/docs/resources/channel#start-thread-from-messagehttps://discord.com/developers/docs/resources/channel#start-thread-without-message
createWebhook(channelId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'reason' | 'signal'>) : Promise<APIWebhook>
Creates a new webhook
See also: https://discord.com/developers/docs/resources/webhook#create-webhook
crosspostMessage() : Promise<APIMessage>
Crossposts a message
See also: https://discord.com/developers/docs/resources/message#crosspost-message
delete(channelId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'reason' | 'signal'>) : 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/message#delete-all-reactions
Deletes all reactions of an emoji for a message
// Unicode.
await api.channels.deleteAllMessageReactionsForEmoji('1234567890', '1234567890', '👍');
// Custom emoji.
await api.channels.deleteAllMessageReactionsForEmoji('1234567890', '1234567890', 'emoji_name:1234567890');See also: https://discord.com/developers/docs/resources/message#delete-all-reactions-for-emoji
Deletes a message
See also: https://discord.com/developers/docs/resources/message#delete-message
Deletes a reaction for the current user
// Unicode.
await api.channels.deleteOwnMessageReaction('1234567890', '1234567890', '👍');
// Custom emoji.
await api.channels.deleteOwnMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890');See also: https://discord.com/developers/docs/resources/message#delete-own-reaction
Deletes the permission overwrite for a user or role in a channel
See also: https://discord.com/developers/docs/resources/channel#delete-channel-permission
deleteUserMessageReaction(channelId: SnowflakemessageId: Snowflakeemoji: stringuserId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'signal'>) : Promise<void>
Deletes a reaction for a user
// Unicode.
await api.channels.deleteUserMessageReaction('1234567890', '1234567890', '👍', '1234567890');
// Custom emoji.
await api.channels.deleteUserMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890', '1234567890');See also: https://discord.com/developers/docs/resources/message#delete-user-reaction
edit(channelId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'reason' | 'signal'>) : Promise<APIChannel>
Edits a channel
See also: https://discord.com/developers/docs/resources/channel#modify-channel
editMessage(channelId: SnowflakemessageId: Snowflakebody: EditMessageOptionsoptions?: Pick<RequestData, 'auth' | 'signal'>) : Promise<APIMessage>
Edits a message
See also: https://discord.com/developers/docs/resources/message#edit-message
editPermissionOverwrite() : Promise<void>
Edits the permission overwrite for a user or role in a channel
See also: https://discord.com/developers/docs/resources/channel#edit-channel-permissions
followAnnouncements(channelId: SnowflakewebhookChannelId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'reason' | 'signal'>) : Promise<APIFollowedChannel>
Follows an announcement channel
See also: https://discord.com/developers/docs/resources/channel#follow-announcement-channel
get(channelId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'signal'>) : Promise<APIChannel>
Fetches a channel
See also: https://discord.com/developers/docs/resources/channel#get-channel
getArchivedThreads(channelId: SnowflakearchivedStatus: 'private' | 'public'options?: Pick<RequestData, 'auth' | 'signal'>) : 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
getInvites(channelId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'signal'>) : Promise<RESTGetAPIChannelInvitesResult>
Fetches the invites of a channel
See also: https://discord.com/developers/docs/resources/channel#get-channel-invites
getJoinedPrivateArchivedThreads(channelId: Snowflakeoptions?: Pick<RequestData, 'auth' | '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/message#get-channel-message
getMessageReactions() : Promise<RESTGetAPIChannelMessageReactionUsersResult>
Fetches the reactions for a message
// Unicode.
await api.channels.getMessageReactions('1234567890', '1234567890', '👍');
// Custom emoji.
await api.channels.getMessageReactions('1234567890', '1234567890', 'emoji_name:1234567890');See also: https://discord.com/developers/docs/resources/message#get-reactions
getMessages(channelId: Snowflakequery?: RESTGetAPIChannelMessagesQueryoptions?: Pick<RequestData, 'auth' | 'signal'>) : Promise<RESTGetAPIChannelMessagesResult>
Fetches the messages of a channel
See also: https://discord.com/developers/docs/resources/message#get-channel-messages
getPins(channelId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'signal'>) : Promise<RESTGetAPIChannelMessagesPinsResult>
Fetches pinned messages of a channel
See also: https://discord.com/developers/docs/resources/message#get-channel-pins
getWebhooks(channelId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'signal'>) : 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/message#pin-message
Removes a recipient from a group DM channel
See also: https://discord.com/developers/docs/resources/channel#group-dm-remove-recipient
sendSoundboardSound(channelId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'signal'>) : Promise<APISoundboardSound>
Sends a soundboard sound in a channel
See also: https://discord.com/developers/docs/resources/soundboard#send-soundboard-sound
showTyping(channelId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'signal'>) : Promise<void>
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/message#unpin-message