diff --git a/src/commands-contextmenu/congratsmessage.ts b/src/commands-contextmenu/congratsmessage.ts index b72133e..1f6eb9b 100644 --- a/src/commands-contextmenu/congratsmessage.ts +++ b/src/commands-contextmenu/congratsmessage.ts @@ -1,4 +1,4 @@ -import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits, userMention } from "discord.js" +import { ApplicationCommandType, ContextMenuCommandBuilder, InteractionContextType, PermissionFlagsBits, userMention } from "discord.js" import { IContextMenu } from "~/interfaces" export default { @@ -9,6 +9,7 @@ export default { data: new ContextMenuCommandBuilder() .setName("Congratulate") .setType(ApplicationCommandType.Message) + .setContexts(InteractionContextType.Guild) .setDefaultMemberPermissions(PermissionFlagsBits.ManageMessages), async execute({ interaction }) { diff --git a/src/commands-contextmenu/resetnick.ts b/src/commands-contextmenu/resetnick.ts index b98331c..e6292dc 100644 --- a/src/commands-contextmenu/resetnick.ts +++ b/src/commands-contextmenu/resetnick.ts @@ -1,4 +1,4 @@ -import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits } from "discord.js" +import { ApplicationCommandType, ContextMenuCommandBuilder, InteractionContextType, PermissionFlagsBits } from "discord.js" import { IContextMenu } from "~/interfaces" export default { @@ -9,6 +9,7 @@ export default { data: new ContextMenuCommandBuilder() .setName("Reset Nickname") .setType(ApplicationCommandType.User) + .setContexts(InteractionContextType.Guild) .setDefaultMemberPermissions(PermissionFlagsBits.ManageNicknames), async execute({ interaction }) { diff --git a/src/commands-contextmenu/updateuser.ts b/src/commands-contextmenu/updateuser.ts index 5d095e4..3049832 100644 --- a/src/commands-contextmenu/updateuser.ts +++ b/src/commands-contextmenu/updateuser.ts @@ -1,4 +1,4 @@ -import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits, userMention } from "discord.js" +import { ApplicationCommandType, ContextMenuCommandBuilder, InteractionContextType, PermissionFlagsBits, userMention } from "discord.js" import db from "src/drizzle/db.js" import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js" import { waitingListRole } from "~/config/roles.js" @@ -14,6 +14,7 @@ export default { data: new ContextMenuCommandBuilder() .setName("Update User") .setType(ApplicationCommandType.User) + .setContexts(InteractionContextType.Guild) .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) {