Added contexts for slashcommands
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { admin, helper } from "config/roles.js"
|
||||
import { GuildMember, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
|
||||
@@ -38,7 +38,8 @@ export default {
|
||||
{ name: "7 days", value: 7 }
|
||||
)
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers)
|
||||
.setContexts(InteractionContextType.Guild),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
Reference in New Issue
Block a user