Carbon

@buape/carbon

Classes

ClassDescription
AnySelectMenu-
AnySelectMenuInteractionThis is the base type interaction, all interaction types extend from this
AutocompleteInteractionThis is the base type interaction, all interaction types extend from this
AutocompleteOptionsHandlerThis class is used to parse the options of a command, and provide errors for any missing or invalid options. It is used internally by the Command class.
BaseChannel-
BaseCommandRepresents the base data of a command that the user creates
BaseComponent-
BaseComponentInteractionThis is the base type interaction, all interaction types extend from this
BaseGuildChannel-
BaseGuildTextChannel-
BaseInteractionThis is the base type interaction, all interaction types extend from this
Button-
ButtonInteractionThis is the base type interaction, all interaction types extend from this
ChannelSelectMenu-
ChannelSelectMenuInteractionThis is the base type interaction, all interaction types extend from this
ClientThe main client used to interact with Discord
CommandRepresents a standard command that the user creates
CommandHandler-
CommandInteractionRepresents a command interaction
CommandWithSubcommandGroupsRepresents a subcommand group command that the user creates. You make this instead of a Command class when you want to have subcommand groups in your options.
CommandWithSubcommandsRepresents a subcommand command that the user creates. You make this instead of a Command class when you want to have subcommands in your options.
ComponentHandler-
DmChannelRepresents a DM between two users.
EmbedRepresents an embed in a message.
FieldsHandlerThis class is used to parse the options of a command, and provide errors for any missing or invalid options. It is used internally by the Command class.
GroupDmChannelRepresents a group DM channel.
Guild-
GuildAnnouncementChannelRepresents a guild announcement channel.
GuildCategoryChannelRepresents a guild category channel.
GuildForumChannelRepresents a guild forum channel.
GuildMediaChannelRepresents a guild media channel (a forum channel)
GuildMember-
GuildStageChannel-
GuildStageOrVoiceChannel-
GuildTextChannel-
GuildThreadChannel-
GuildThreadOnlyChannel-
GuildVoiceChannel-
LinkButton-
MentionableSelectMenu-
MentionableSelectMenuInteractionThis is the base type interaction, all interaction types extend from this
Message-
Modal-
ModalHandler-
ModalInteractionThis is the base type interaction, all interaction types extend from this
OptionsHandlerThis class is used to parse the options of a command, and provide errors for any missing or invalid options. It is used internally by the Command class.
Plugin-
PremiumButton-
Role-
RoleSelectMenu-
RoleSelectMenuInteractionThis is the base type interaction, all interaction types extend from this
Row-
StringSelectMenu-
StringSelectMenuInteractionThis is the base type interaction, all interaction types extend from this
TextInput-
User-
UserSelectMenu-
UserSelectMenuInteractionThis is the base type interaction, all interaction types extend from this

Interfaces

InterfaceDescription
ClientOptionsThe options used for initializing the client
Context-
HandlerOptions-
Route-
ServerOptions-
SharedOptions-

Type Aliases

Type aliasDescription
AnySelectMenuComponentType-
CommandOptions-
ComponentAdditionalData-
Fetch-
Handle-
IfPartial-
InteractionDefaults-
InteractionFileDataThe data for a file to send in an interaction
InteractionReplyOptionsAdditional options for replying to an interaction
MessagePayloadThe data that is sent to Discord when sending a message. If you pass just a string, it will be treated as the content of the message.
PartialEnv-
RawOptions-

Variables

VariableDescription
subtleCrypto-

Functions

FunctionDescription
channelFactory-
concatUint8Arrays-
createHandleCreates a handle function that can be used to handle requests
serializePayload-
splitCustomId-
valueToUint8Array-

On this page

Edit on GitHub