File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,15 +9,13 @@ import type {
99 Snowflake ,
1010 ContextMenuInteraction
1111} from "discord.js" ;
12- import type { ApplicationCommandTypes } from "discord.js/typings/enums" ;
1312
1413export default class DiscordCommand extends BaseClass {
1514 scope : "GLOBAL" | "GUILD" | "UNKNOWN" = "UNKNOWN" ;
1615 guildId ?: string ;
1716 name : string ;
1817 description : string ;
1918 defaultPermission ?: boolean ;
20- type ?: "CHAT_INPUT" | ApplicationCommandTypes . CHAT_INPUT ;
2119 options ?: ApplicationCommandOptionData [ ] ;
2220 cooldown ?: number ;
2321 channelAllowlist ?: Snowflake [ ] ;
@@ -33,7 +31,6 @@ export default class DiscordCommand extends BaseClass {
3331 this . name = options . name ;
3432 this . description = options . description ;
3533 this . defaultPermission = options . defaultPermission ;
36- this . type = options . type ;
3734 this . options = options . options ;
3835 this . cooldown = options . cooldown ;
3936 this . channelAllowlist = options . channelAllowlist ;
You can’t perform that action at this time.
0 commit comments