11 |
} |
} |
12 |
|
|
13 |
async run(client: DiscordClient, interaction: Interaction) { |
async run(client: DiscordClient, interaction: Interaction) { |
14 |
|
if (!interaction.guild || !interaction.channel || interaction.channel.type === 'DM') { |
15 |
|
if (interaction.isRepliable()) |
16 |
|
await interaction.reply({ |
17 |
|
content: 'You cannot use this bot on DMs.', |
18 |
|
ephemeral: true |
19 |
|
}); |
20 |
|
|
21 |
|
return; |
22 |
|
} |
23 |
|
|
24 |
if (interaction.isCommand()) { |
if (interaction.isCommand()) { |
25 |
await client.setMessage(interaction); |
await client.setMessage(interaction); |
26 |
|
|