node-event-bot/server/types/commandTypes.ts
mightypanders 10bc4ae5df
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
update interfaces
2022-04-09 23:02:08 +02:00

18 lines
592 B
TypeScript

import { PermissionResolvable, ChatInputApplicationCommandData, CommandInteraction, CommandInteractionOptionResolver, GuildMember } from "discord.js";
import { ExtendedClient } from "../structures/client";
export interface ExtendedInteraction extends CommandInteraction {
member: GuildMember
}
interface RunOptions {
client: ExtendedClient
interaction: ExtendedInteraction
args: CommandInteractionOptionResolver
}
type RunFunction = (options: RunOptions) => any
export type CommandType = {
userPermissions?: PermissionResolvable[]
run: RunFunction
} & ChatInputApplicationCommandData