@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
interaction
data
discordRestTypes.EditWebhookMessageRequest
reply
Function Signature
function reply(ctx: Primitives.TemplateContext, interaction: discord.InteractionObject, data: discordRestTypes.CreateInteractionRequest) end
Arguments
ctx
interaction
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
interaction
content
This field is optional and may not be specified
embeds
This field is optional and may not be specified
ephemeral
This field is optional and may not be specified
components
This field is optional and may not be specified
replyAck
Function Signature
function replyAck(ctx: Primitives.TemplateContext, interaction: discord.InteractionObject) end
Arguments
ctx
interaction
replyUpdate
Function Signature
function replyUpdate(ctx: Primitives.TemplateContext, interaction: discord.InteractionObject, content: string?, embeds: {discord.EmbedObject}?, components: {discord.ComponentObjects}?) end
Arguments
ctx
interaction
content
This field is optional and may not be specified
embeds
This field is optional and may not be specified
components
This field is optional and may not be specified
replyAutocomplete
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
interaction
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
interaction
content
This field is optional and may not be specified
embeds
This field is optional and may not be specified
components
This field is optional and may not be specified
Last updated on