LogoAntiRaid

@antiraid-ext/utils/interaction

API reference for @antiraid-ext/utils/interaction

@antiraid-ext/utils/interaction

Functions

edit

Function Signature
function edit(ctx: Primitives.TemplateContext, interaction: discord.InteractionObject, data: discordRestTypes.EditWebhookMessageRequest) end

Arguments

ctx

Primitives.TemplateContext

interaction

discord.InteractionObject

data

discordRestTypes.EditWebhookMessageRequest

reply

Function Signature
function reply(ctx: Primitives.TemplateContext, interaction: discord.InteractionObject, data: discordRestTypes.CreateInteractionRequest) end

Arguments

ctx

Primitives.TemplateContext

interaction

discord.InteractionObject

data

discordRestTypes.CreateInteractionRequest

replySimple

Function Signature
function replySimple(ctx: Primitives.TemplateContext, interaction: discord.InteractionObject, content: string?, embeds: {discord.EmbedObject}?, ephemeral: boolean?, components: {discord.ComponentObjects}?) end

Arguments

ctx

Primitives.TemplateContext

interaction

discord.InteractionObject

content

This field is optional and may not be specified

string?

embeds

This field is optional and may not be specified

{discord.EmbedObject}?

ephemeral

This field is optional and may not be specified

boolean?

components

This field is optional and may not be specified

{discord.ComponentObjects}?

replyAck

Function Signature
function replyAck(ctx: Primitives.TemplateContext, interaction: discord.InteractionObject) end

Arguments

ctx

Primitives.TemplateContext

interaction

discord.InteractionObject

replyUpdate

Function Signature
function replyUpdate(ctx: Primitives.TemplateContext, interaction: discord.InteractionObject, content: string?, embeds: {discord.EmbedObject}?, components: {discord.ComponentObjects}?) end

Arguments

ctx

Primitives.TemplateContext

interaction

discord.InteractionObject

content

This field is optional and may not be specified

string?

embeds

This field is optional and may not be specified

{discord.EmbedObject}?

components

This field is optional and may not be specified

{discord.ComponentObjects}?

replyAutocomplete

https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-autocomplete

Function Signature
-- https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-autocomplete
function replyAutocomplete(ctx: Primitives.TemplateContext, interaction: discord.InteractionObject, choices: {discord.ApplicationCommandOptionChoiceObject}) end

Arguments

ctx

Primitives.TemplateContext

interaction

discord.InteractionObject

choices

{discord.ApplicationCommandOptionChoiceObject}

editSimple

Function Signature
function editSimple(ctx: Primitives.TemplateContext, interaction: discord.InteractionObject, content: string?, embeds: {discord.EmbedObject}?, components: {discord.ComponentObjects}?) end

Arguments

ctx

Primitives.TemplateContext

interaction

discord.InteractionObject

content

This field is optional and may not be specified

string?

embeds

This field is optional and may not be specified

{discord.EmbedObject}?

components

This field is optional and may not be specified

{discord.ComponentObjects}?

Last updated on