From 2da56ba128ccde6e52bb8a17e8e8c8d4ff7de9d6 Mon Sep 17 00:00:00 2001 From: vaporvee Date: Sun, 14 Apr 2024 02:50:00 +0200 Subject: [PATCH] fixed even more permission issues --- cmd_autojoinroles.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd_autojoinroles.go b/cmd_autojoinroles.go index fdfcd99..8c1ce09 100644 --- a/cmd_autojoinroles.go +++ b/cmd_autojoinroles.go @@ -3,13 +3,15 @@ package main import ( "github.com/disgoorg/disgo/discord" "github.com/disgoorg/disgo/events" + "github.com/disgoorg/json" "github.com/sirupsen/logrus" ) var cmd_autojoinroles Command = Command{ Definition: discord.SlashCommandCreate{ - Name: "autojoinroles", - Description: "Give users a role when they join", + Name: "autojoinroles", + Description: "Give users a role when they join", + DefaultMemberPermissions: json.NewNullablePtr(discord.PermissionManageRoles), Contexts: []discord.InteractionContextType{ discord.InteractionContextTypeGuild, discord.InteractionContextTypePrivateChannel},