Browse Source

Update invalid link to docs (#1010)

Han Seung Min - 한승민 2 years ago
parent
commit
9f89234f3f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      interactions.go
  2. 1 1
      wsapi.go

+ 1 - 1
interactions.go

@@ -412,7 +412,7 @@ type InteractionResponseData struct {
 
 // VerifyInteraction implements message verification of the discord interactions api
 // signing algorithm, as documented here:
-// https://discord.com/developers/docs/interactions/slash-commands#security-and-authorization
+// https://discord.com/developers/docs/interactions/receiving-and-responding#security-and-authorization
 func VerifyInteraction(r *http.Request, key ed25519.PublicKey) bool {
 	var msg bytes.Buffer
 

+ 1 - 1
wsapi.go

@@ -33,7 +33,7 @@ var ErrWSAlreadyOpen = errors.New("web socket already opened")
 var ErrWSNotFound = errors.New("no websocket connection exists")
 
 // ErrWSShardBounds is thrown when you try to use a shard ID that is
-// less than the total shard count
+// more than the total shard count
 var ErrWSShardBounds = errors.New("ShardID must be less than ShardCount")
 
 type resumePacket struct {