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

Commit

Permalink
fix: missing intent value in identify
Browse files Browse the repository at this point in the history
  • Loading branch information
andersfylling committed Dec 30, 2021
1 parent 0836c5b commit 62acb35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/gateway/eventclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func NewEventClient(shardID uint, conf *EvtConfig) (client *EvtClient, err error
return nil, err
}

conf.Logger.Debug(fmt.Sprintf("shard %d intents: %s", shardID, conf.Intents.String()))
conf.Logger.Debug(fmt.Sprintf("shard{%d} intents(%d): %s", shardID, conf.Intents, conf.Intents.String()))

client = &EvtClient{
evtConf: conf,
Expand Down
2 changes: 1 addition & 1 deletion internal/gateway/packets.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ type evtIdentity struct {
LargeThreshold uint `json:"large_threshold"`
Shard *[2]uint `json:"shard,omitempty"`
Presence json.RawMessage `json:"presence,omitempty"`
Intents Intent `json:"intents,omitempty"`
Intents Intent `json:"intents"`
}

type evtResume struct {
Expand Down

0 comments on commit 62acb35

Please sign in to comment.