fixed even more permission issues
This commit is contained in:
@@ -3,13 +3,15 @@ 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"
|
||||||
)
|
)
|
||||||
|
|
||||||
var cmd_autojoinroles Command = Command{
|
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