Skip to content

Commit df4683e

Browse files
committed
fix: remove type of member permissions from subcommand and groups
1 parent 27083a1 commit df4683e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/slash-commands/decorators/subcommand-group.decorator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { noop } from 'rxjs';
66
import { Reflector } from '@nestjs/core';
77

88
export const SubcommandGroup = Reflector.createDecorator<
9-
Omit<SlashCommandMeta, 'type' | 'options' | 'guilds'>,
9+
Omit<SlashCommandMeta, 'type' | 'options' | 'guilds' | 'defaultMemberPermissions'>,
1010
SlashCommandDiscovery
1111
>({
1212
transform: options =>

src/commands/slash-commands/decorators/subcommand.decorator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ApplicationCommandOptionType } from 'discord.js';
33
import { Reflector } from '@nestjs/core';
44

55
export const Subcommand = Reflector.createDecorator<
6-
Omit<SlashCommandMeta, 'type' | 'options' | 'guilds'>,
6+
Omit<SlashCommandMeta, 'type' | 'options' | 'guilds' | 'defaultMemberPermissions'>,
77
SlashCommandDiscovery
88
>({
99
transform: options =>

0 commit comments

Comments
 (0)