LogoAntiRaid

@antiraid-ext/events/discord/InteractionCreate

API reference for @antiraid-ext/events/discord/InteractionCreate

@antiraid-ext/events/discord/InteractionCreate

Functions

onInteractionCreate

InteractionCreate

Run an event on interaction create (e.g a slash command was used or a button was clicked)

Function Signature
--- InteractionCreate
---
--- Run an event on interaction create (e.g a slash command was used or a button was clicked)
function onInteractionCreate(event: Primitives.Event, callback: (interaction: discord.InteractionObject) -> ()) end

Arguments

event

Primitives.Event

callback

Function Signature
callback: (interaction: discord.InteractionObject) -> ()

Arguments

interaction

discord.InteractionObject

Last updated on