Added contexts for slashcommands
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
|
||||
export default {
|
||||
@@ -10,7 +10,8 @@ export default {
|
||||
|
||||
data: new SlashCommandBuilder()
|
||||
.setName("help")
|
||||
.setDescription("List's all commands usable by a member"),
|
||||
.setDescription("List's all commands usable by a member")
|
||||
.setContexts(InteractionContextType.Guild),
|
||||
|
||||
async execute({ interaction, client }) {
|
||||
await interaction.deferReply({ ephemeral: true })
|
||||
|
||||
Reference in New Issue
Block a user