gateway: enable versioned ready fields
This commit is contained in:
parent
58fbfb467d
commit
c6305c0510
3 changed files with 9 additions and 8 deletions
4
go.mod
4
go.mod
|
|
@ -8,8 +8,8 @@ require (
|
|||
github.com/BurntSushi/toml v1.6.0
|
||||
github.com/alecthomas/chroma/v2 v2.27.0
|
||||
github.com/andybalholm/brotli v1.2.2
|
||||
github.com/ayn2op/arikawa/v3 v3.0.0-20260818025315-9a83c89dfe47
|
||||
github.com/ayn2op/ningen/v3 v3.0.1-0.20260818025404-257b0cf3ee63
|
||||
github.com/ayn2op/arikawa/v3 v3.0.0-20260818031739-707854a38891
|
||||
github.com/ayn2op/ningen/v3 v3.0.1-0.20260818031845-664caaed64fc
|
||||
github.com/ayn2op/tview v0.0.0-20260812042550-0532d50b709f
|
||||
github.com/bogdanfinn/fhttp v0.6.8
|
||||
github.com/bogdanfinn/tls-client v1.15.1
|
||||
|
|
|
|||
8
go.sum
8
go.sum
|
|
@ -10,10 +10,10 @@ github.com/alecthomas/repr v0.5.2 h1:SU73FTI9D1P5UNtvseffFSGmdNci/O6RsqzeXJtP0Qs
|
|||
github.com/alecthomas/repr v0.5.2/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4=
|
||||
github.com/andybalholm/brotli v1.2.2 h1:HzTuoo2ErYQqf5qvcJInB8uvqSVxRttzkFexPWtnceM=
|
||||
github.com/andybalholm/brotli v1.2.2/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUSvPlQ1pLaKY=
|
||||
github.com/ayn2op/arikawa/v3 v3.0.0-20260818025315-9a83c89dfe47 h1:wYkgKs+NS5U7XY3wobQ1QUR4pvXRe7xzyfdVBQCH2E8=
|
||||
github.com/ayn2op/arikawa/v3 v3.0.0-20260818025315-9a83c89dfe47/go.mod h1:O0QAm4VBLKBF01sofDEsAHGfD8+Tk8iWNYWksojTt6A=
|
||||
github.com/ayn2op/ningen/v3 v3.0.1-0.20260818025404-257b0cf3ee63 h1:LCxVAmGYU4x0a61/Qm5BULi9ALq8nPclXj1XNFgs6eI=
|
||||
github.com/ayn2op/ningen/v3 v3.0.1-0.20260818025404-257b0cf3ee63/go.mod h1:SlZCoIzECME7GWq7DVMlshL8T2PQ0C03gFNH4e6IsYQ=
|
||||
github.com/ayn2op/arikawa/v3 v3.0.0-20260818031739-707854a38891 h1:iixz+hkG3rKVa2DxHiga+ZySUes+2rgcSDsfumtK91w=
|
||||
github.com/ayn2op/arikawa/v3 v3.0.0-20260818031739-707854a38891/go.mod h1:O0QAm4VBLKBF01sofDEsAHGfD8+Tk8iWNYWksojTt6A=
|
||||
github.com/ayn2op/ningen/v3 v3.0.1-0.20260818031845-664caaed64fc h1:XE0OWYFMvqKi4cFq8Z2jQ/qglaW2pYeKoSNRMZexWrg=
|
||||
github.com/ayn2op/ningen/v3 v3.0.1-0.20260818031845-664caaed64fc/go.mod h1:1b+xGSqqPlpfOetP1GxuTPy1KHhDbj2pc4CY+pIICAs=
|
||||
github.com/ayn2op/tview v0.0.0-20260812042550-0532d50b709f h1:RidxK97+mKbM25L2iIdM6i6nfdZBSd1chNCu8e0PbxE=
|
||||
github.com/ayn2op/tview v0.0.0-20260812042550-0532d50b709f/go.mod h1:l/sE5dmdvLVlv/2rvoJFcFVl6uq9w2Z62/SfGpJiquw=
|
||||
github.com/bdandy/go-errors v1.2.2 h1:WdFv/oukjTJCLa79UfkGmwX7ZxONAihKu4V0mLIs11Q=
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ func NewModel(cfg *config.Config, token string) *Model {
|
|||
id := gateway.NewIdentifier(gateway.IdentifyCommand{
|
||||
Token: token,
|
||||
Properties: http.IdentifyProperties(),
|
||||
Capabilities: gateway.VersionedReadStates | gateway.VersionedUserGuildSetttings,
|
||||
})
|
||||
|
||||
session := session.NewWithGateway(clientgateway.New(id), handler.New())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue