@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) endArguments
ctx
interaction
data
discordRestTypes.EditWebhookMessageRequest
reply
Function Signature
function reply(ctx: Primitives.TemplateContext, interaction: discord.InteractionObject, data: discordRestTypes.CreateInteractionRequest) endArguments
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}?) endArguments
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) endArguments
ctx
interaction
replyUpdate
Function Signature
function replyUpdate(ctx: Primitives.TemplateContext, interaction: discord.InteractionObject, content: string?, embeds: {discord.EmbedObject}?, components: {discord.ComponentObjects}?) endArguments
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}) endArguments
ctx
interaction
choices
{discord.ApplicationCommandOptionChoiceObject}
editSimple
Function Signature
function editSimple(ctx: Primitives.TemplateContext, interaction: discord.InteractionObject, content: string?, embeds: {discord.EmbedObject}?, components: {discord.ComponentObjects}?) endArguments
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