From 044a17bfaf8566846f367aa02d9e0418ac86a1c0 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 9 Dec 2023 21:34:52 -0500 Subject: [PATCH] temporarily disable kick/ban context menu items --- src/utils/ContextMenus.ts | 58 +++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/src/utils/ContextMenus.ts b/src/utils/ContextMenus.ts index 6617dab..1e4f5a9 100644 --- a/src/utils/ContextMenus.ts +++ b/src/utils/ContextMenus.ts @@ -87,36 +87,36 @@ export default { const items: IContextMenuItem[] = []; - if (permissions.has("KICK_MEMBERS")) { - items.push({ - label: `Kick ${them.user!.username}`, - onClick: () => { - // openModal(KickModal, { - // member: them, - // }); - }, - color: "red", - hover: { - backgroundColor: "red", - color: "white", - }, - }); - } + // if (permissions.has("KICK_MEMBERS")) { + // items.push({ + // label: `Kick ${them.user!.username}`, + // onClick: () => { + // // openModal(KickModal, { + // // member: them, + // // }); + // }, + // color: "red", + // hover: { + // backgroundColor: "red", + // color: "white", + // }, + // }); + // } - if (permissions.has("BAN_MEMBERS")) { - items.push({ - label: `Ban ${them.user!.username}`, - onClick: () => { - // member.kick() - console.log("ban member"); - }, - color: "red", - hover: { - backgroundColor: "red", - color: "white", - }, - }); - } + // if (permissions.has("BAN_MEMBERS")) { + // items.push({ + // label: `Ban ${them.user!.username}`, + // onClick: () => { + // // member.kick() + // console.log("ban member"); + // }, + // color: "red", + // hover: { + // backgroundColor: "red", + // color: "white", + // }, + // }); + // } return items; },