LogoAntiRaid

@antiraid-ext/interactions

API reference for @antiraid-ext/interactions

@antiraid-ext/interactions

Functions

ApplicationCommandOptionType

Converts a string representation of an application command option type to its corresponding numeric value.

Function Signature
--- Converts a string representation of an application command option type to its corresponding numeric value.
--- @param type The string representation of the application command option type.
--- @return The numeric value corresponding to the application command option type.
function ApplicationCommandOptionType(type: "SubCommand" | "SubCommandGroup" | "String" | "Integer" | "Boolean" | "User" | "Channel" | "Role" | "Mentionable" | "Number" | "Attachment") -> number end

Arguments

type

The string representation of the application command option type.

Union with variants:

Variant 1
"SubCommand"
Variant 2
"SubCommandGroup"
Variant 3
"String"
Variant 4
"Integer"
Variant 5
"Boolean"
Variant 6
"User"
Variant 7
"Channel"
Variant 8
"Role"
Variant 9
"Mentionable"
Variant 10
"Number"
Variant 11
"Attachment"

Returns

The

numeric value corresponding to the application command option type.

number

IntegrationType

Function Signature
function IntegrationType(type: "GuildInstall" | "UserInstall") -> number end

Arguments

type

Union with variants:

Variant 1
"GuildInstall"
Variant 2
"UserInstall"

Returns

ret1

number

Last updated on