Skip to content

Commit

Permalink
権限設定 (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikafly144 authored Mar 8, 2023
1 parent 66a9028 commit 28018f7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bot/commands/poll.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (

"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/disgoorg/json"
"github.com/disgoorg/snowflake/v2"
"github.com/google/uuid"
botlib "github.com/sabafly/gobot/lib/bot"
Expand All @@ -21,9 +22,10 @@ import (
func Poll(b *botlib.Bot) handler.Command {
return handler.Command{
Create: discord.SlashCommandCreate{
Name: "poll",
Description: "create, and manage poll",
DMPermission: &b.Config.DMPermission,
DefaultMemberPermissions: json.NewNullablePtr(discord.PermissionManageServer),
Name: "poll",
Description: "create, and manage poll",
DMPermission: &b.Config.DMPermission,
Options: []discord.ApplicationCommandOption{
discord.ApplicationCommandOptionSubCommand{
Name: "create",
Expand Down

0 comments on commit 28018f7

Please sign in to comment.