Moved to using an object for execute args
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
/* eslint-disable no-unused-vars */
|
||||
import {
|
||||
ContextMenuCommandInteraction,
|
||||
ContextMenuCommandBuilder
|
||||
} from "discord.js"
|
||||
import { ContextMenuCommandInteraction, ContextMenuCommandBuilder } from "discord.js"
|
||||
import { ExtendedClient } from "utils/Client"
|
||||
|
||||
export default interface IContextMenu {
|
||||
name: string
|
||||
description: string
|
||||
dev?: boolean
|
||||
data: ContextMenuCommandBuilder
|
||||
execute: (interaction: ContextMenuCommandInteraction) => Promise<void>
|
||||
execute: (arg: { interaction: ContextMenuCommandInteraction, client: ExtendedClient }) => Promise<void>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user