Added contexts for slashcommands
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { anilist } from "anilist"
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
|
||||
export default {
|
||||
@@ -17,7 +17,8 @@ export default {
|
||||
.setName("query")
|
||||
.setDescription("The anime to search for")
|
||||
.setRequired(true)
|
||||
),
|
||||
)
|
||||
.setContexts(InteractionContextType.Guild),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
Reference in New Issue
Block a user