13 lines
291 B
TypeScript
13 lines
291 B
TypeScript
import { Client, Discord, On, type ArgsOf } from "discordx";
|
|
|
|
@Discord()
|
|
export class InteractionCreate {
|
|
@On({ event: "interactionCreate" })
|
|
async interactionCreate(
|
|
[interaction]: ArgsOf<"interactionCreate">,
|
|
client: Client,
|
|
) {
|
|
await client.executeInteraction(interaction);
|
|
}
|
|
}
|