Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
Move to Discord API v9 (#414)
Browse files Browse the repository at this point in the history
This is required for threads events via gateway
  • Loading branch information
kittcodes authored Aug 2, 2021
1 parent 4558fb8 commit 38e60d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/constant/communication.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package constant

// DiscordVersion API version
const DiscordVersion = 8
const DiscordVersion = 9

// JSONEncoding the json encoding identifier
const JSONEncoding = "json"
Expand Down
2 changes: 1 addition & 1 deletion internal/httd/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (c *Client) BucketGrouping() (group map[string][]string) {
// SupportsDiscordAPIVersion check if a given discord api version is supported by this package.
func SupportsDiscordAPIVersion(version int) bool {
supports := []int{
8,
9,
}

var supported bool
Expand Down

0 comments on commit 38e60d2

Please sign in to comment.