Added contexts for slashcommands
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "config/reqs.js"
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
|
||||
export default {
|
||||
@@ -11,7 +11,8 @@ export default {
|
||||
|
||||
data: new SlashCommandBuilder()
|
||||
.setName("reqs")
|
||||
.setDescription("Displays the requirements for the guild."),
|
||||
.setDescription("Displays the requirements for the guild.")
|
||||
.setContexts(InteractionContextType.Guild),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.reply({
|
||||
|
||||
Reference in New Issue
Block a user