forked from abner/for-legacy-web
Update ContextMenus.tsx
Add Create Invite button to server context menuui/bot-profile
parent
8ba5c13cfc
commit
30448ce5a0
|
|
@ -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 ||
|
||||
|
|
|
|||
Loading…
Reference in New Issue