fixed even more permission issues
This commit is contained in:
@@ -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},
|
||||||
|
Reference in New Issue
Block a user