Skip to content

Commit 9ab460a

Browse files
committed
fix: remove useless types
1 parent 29e8979 commit 9ab460a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/types/preconditions.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,23 @@
11
import type {
22
ChatInputCommandInteraction,
3-
Message,
43
MessageContextMenuCommandInteraction,
54
UserContextMenuCommandInteraction
65
} from 'discord.js'
76

8-
type MessageEntity = {
9-
readonly type: 'message'
10-
readonly message: Message
11-
readonly interaction?: undefined
12-
}
13-
147
type SlashEntity = {
158
readonly type: 'slash'
16-
readonly message?: undefined
179
readonly interaction: ChatInputCommandInteraction
1810
}
1911

2012
type ContextMenuEntity = {
2113
readonly type: 'context-menu'
22-
readonly message?: undefined
2314
readonly interaction:
2415
| MessageContextMenuCommandInteraction
2516
| UserContextMenuCommandInteraction
2617
}
2718

2819
export type PreconditionCallback = (
29-
entity: MessageEntity | SlashEntity | ContextMenuEntity
20+
entity: SlashEntity | ContextMenuEntity
3021
) => boolean
3122

3223
export interface PreconditionOptions {

0 commit comments

Comments
 (0)