Skip to content

Commit

Permalink
Application commands: Permissions v2 (#1075)
Browse files Browse the repository at this point in the history
* feat(interactions): default command permissions

* feat: add ApplicationCommandPermissionTypeChannel

* feat: add deprecation and oauth2 scope comments

* feat(interactions): add GuildAllChannelsID function

* feat(examples/slash_commands): application command permissions

* feat(events): add ApplicationCommandPermissionsUpdate

* feat: add AuditLogActionApplicationCommandPermissionUpdate

* feat(interactions#GuildAllChannelsID): use strconv instead of math/big

* feat(interactions#GuildAllChannelsID): error handling

* feat: cosmetic changes

* fix(examples/slash_commands): handle error returned by GuildAllChannelsID

* fix: typo

* fix: typo
  • Loading branch information
FedorLap2006 committed Apr 28, 2022
1 parent cd95ccc commit 9e0783c
Show file tree
Hide file tree
Showing 6 changed files with 273 additions and 125 deletions.
275 changes: 154 additions & 121 deletions eventhandlers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions events.go
Expand Up @@ -401,3 +401,8 @@ type InviteDelete struct {
GuildID string `json:"guild_id"`
Code string `json:"code"`
}

// ApplicationCommandPermissionsUpdate is the data for an ApplicationCommandPermissionsUpdate event
type ApplicationCommandPermissionsUpdate struct {
*GuildApplicationCommandPermissions
}

0 comments on commit 9e0783c

Please sign in to comment.