From 30448ce5a04e2829461d7e470bacc8efb435e5ee Mon Sep 17 00:00:00 2001 From: Ryan Alexander <38785445+ryanalexander@users.noreply.github.com> Date: Mon, 16 Aug 2021 08:00:53 +1000 Subject: [PATCH] Update ContextMenus.tsx Add Create Invite button to server context menu --- src/lib/ContextMenus.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/ContextMenus.tsx b/src/lib/ContextMenus.tsx index 7448be6e..1898024d 100644 --- a/src/lib/ContextMenus.tsx +++ b/src/lib/ContextMenus.tsx @@ -860,6 +860,15 @@ function ContextMenus(props: Props) { } if (sid && server) { + if (server.channels[0] !== undefined) + generateAction( + { + action: "create_invite", + target: server.channels[0], + }, + "create_invite", + ); + if ( serverPermissions & ServerPermission.ChangeNickname ||