Skip to content

Commit

Permalink
add permission
Browse files Browse the repository at this point in the history
  • Loading branch information
sebm253 committed Apr 17, 2024
1 parent d2c169d commit d771026
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion discord/permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ const (
PermissionCreateEvents
PermissionUseExternalSounds
PermissionSendVoiceMessages
_
_
PermissionSendPolls

PermissionsAllText = PermissionViewChannel |
PermissionSendMessages |
Expand All @@ -72,7 +75,8 @@ const (
PermissionAttachFiles |
PermissionReadMessageHistory |
PermissionMentionEveryone |
PermissionSendVoiceMessages
PermissionSendVoiceMessages |
PermissionSendPolls

PermissionsAllThread = PermissionManageThreads |
PermissionCreatePublicThreads |
Expand Down Expand Up @@ -170,6 +174,7 @@ var permissions = map[Permissions]string{
PermissionStream: "Video",
PermissionViewGuildInsights: "View Server Insights",
PermissionSendVoiceMessages: "Send Voice Messages",
PermissionSendPolls: "Create Polls",
}

func (p Permissions) String() string {
Expand Down

0 comments on commit d771026

Please sign in to comment.