fixed even more permission issues

This commit is contained in:
2024-04-14 02:50:00 +02:00
parent cf7c97ef93
commit 2da56ba128

View File

@@ -3,6 +3,7 @@ package main
import ( import (
"github.com/disgoorg/disgo/discord" "github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events" "github.com/disgoorg/disgo/events"
"github.com/disgoorg/json"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )
@@ -10,6 +11,7 @@ var cmd_autojoinroles Command = Command{
Definition: discord.SlashCommandCreate{ Definition: discord.SlashCommandCreate{
Name: "autojoinroles", Name: "autojoinroles",
Description: "Give users a role when they join", Description: "Give users a role when they join",
DefaultMemberPermissions: json.NewNullablePtr(discord.PermissionManageRoles),
Contexts: []discord.InteractionContextType{ Contexts: []discord.InteractionContextType{
discord.InteractionContextTypeGuild, discord.InteractionContextTypeGuild,
discord.InteractionContextTypePrivateChannel}, discord.InteractionContextTypePrivateChannel},