1
0
Fork 0
mirror of https://github.com/diamondburned/cchat-discord.git synced 2024-12-22 20:36:45 +00:00

bumped cchat

This commit is contained in:
diamondburned 2021-03-25 16:32:37 -07:00
parent 18eb608146
commit f9814bf410
3 changed files with 10 additions and 8 deletions

2
go.mod
View file

@ -4,7 +4,7 @@ go 1.14
require (
github.com/diamondburned/arikawa/v2 v2.0.5
github.com/diamondburned/cchat v0.6.1
github.com/diamondburned/cchat v0.6.4
github.com/diamondburned/ningen/v2 v2.0.0-20210106052055-9da2a0102d49
github.com/dustin/go-humanize v1.0.0
github.com/go-test/deep v1.0.7

6
go.sum
View file

@ -33,6 +33,12 @@ github.com/diamondburned/cchat v0.6.0 h1:XVql8slOho9FUxuJm/I7/XWr5l1XgxLc5SvcvI+
github.com/diamondburned/cchat v0.6.0/go.mod h1:IlMtF+XIvAJh0GL/2yFdf0/34w+Hdy5A1GgvSwAXtQI=
github.com/diamondburned/cchat v0.6.1 h1:BFpY2Nvnut1/X+0dhL8STK80RVmfEJLmf4ppTJX2ADg=
github.com/diamondburned/cchat v0.6.1/go.mod h1:IlMtF+XIvAJh0GL/2yFdf0/34w+Hdy5A1GgvSwAXtQI=
github.com/diamondburned/cchat v0.6.2 h1:H0Hyd2irpKlTR03ulm6IMy7RVorPtvQS5X0kTn26Up8=
github.com/diamondburned/cchat v0.6.2/go.mod h1:IlMtF+XIvAJh0GL/2yFdf0/34w+Hdy5A1GgvSwAXtQI=
github.com/diamondburned/cchat v0.6.3 h1:st2RJfjsMFjK94dxetDCUXzf9HXp+RKGstDCb9LtH/8=
github.com/diamondburned/cchat v0.6.3/go.mod h1:IlMtF+XIvAJh0GL/2yFdf0/34w+Hdy5A1GgvSwAXtQI=
github.com/diamondburned/cchat v0.6.4 h1:CFh6eFNE+SQ7IOjb1QDcgTgv/I7W2k6E7d3n8qJ+ZrQ=
github.com/diamondburned/cchat v0.6.4/go.mod h1:IlMtF+XIvAJh0GL/2yFdf0/34w+Hdy5A1GgvSwAXtQI=
github.com/diamondburned/ningen/v2 v2.0.0-20210106052055-9da2a0102d49 h1:wfj+fvDJLUC+xkRmVA/ZE9nmeSqFy4fbyIi3hBHgn/U=
github.com/diamondburned/ningen/v2 v2.0.0-20210106052055-9da2a0102d49/go.mod h1:WRQCUX/dTH4OPEy3JANLA5D6fbumzp5zk03uSUAZppA=
github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo=

View file

@ -1,7 +1,6 @@
package memberlister
import (
"context"
"fmt"
"strings"
@ -40,11 +39,10 @@ func (l *Member) ID() cchat.ID {
return l.mention.UserID().String()
}
func (l *Member) Name(ctx context.Context, labeler cchat.LabelContainer) (func(), error) {
l.mention.Prefetch()
func (l *Member) Name() text.Rich {
content := l.mention.DisplayName()
labeler.SetLabel(text.Rich{
return text.Rich{
Content: content,
Segments: []text.Segment{
mention.Segment{
@ -52,9 +50,7 @@ func (l *Member) Name(ctx context.Context, labeler cchat.LabelContainer) (func()
User: &l.mention,
},
},
})
return func() {}, nil
}
}
func (l *Member) Status() cchat.Status {