-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathtranslate.ts
More file actions
35 lines (29 loc) · 840 Bytes
/
translate.ts
File metadata and controls
35 lines (29 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import {
ChatInputCommand,
MessageCommand,
MessageContextMenuCommand,
UserContextMenuCommand,
} from 'commandkit';
import { ApplicationCommandType, ContextMenuCommandBuilder } from 'discord.js';
export const command = new ContextMenuCommandBuilder()
.setName('translate')
.setType(ApplicationCommandType.User);
// export const command: CommandData = {
// name: 'translate',
// };
export const userContextMenu: UserContextMenuCommand = async ({
interaction,
}) => {
interaction.reply('test');
};
export const messageContextMenu: MessageContextMenuCommand = async ({
interaction,
}) => {
interaction.reply('test');
};
export const chatInput: ChatInputCommand = async ({ interaction }) => {
interaction.reply('test');
};
export const message: MessageCommand = async ({ message }) => {
message.reply('test');
};