From f3e0d38c382d7b6dae02f414f3402922f2bfe35c Mon Sep 17 00:00:00 2001 From: diamondburned Date: Fri, 19 Mar 2021 17:00:32 -0700 Subject: [PATCH] bumped cchat --- discord.go | 5 +++++ go.mod | 2 +- go.sum | 2 ++ internal/discord/session/session.go | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/discord.go b/discord.go index 136fe23..20da4a4 100644 --- a/discord.go +++ b/discord.go @@ -13,6 +13,9 @@ import ( "github.com/diamondburned/cchat/utils/empty" ) +// ID is the unique ID of this cchat service. +const ID = "com.github.diamondburned.cchat-discord" + var service cchat.Service = Service{} func init() { @@ -31,6 +34,8 @@ type Service struct { empty.Service } +func (Service) ID() string { return ID } + func (Service) Name(_ context.Context, l cchat.LabelContainer) (func(), error) { l.SetLabel(text.Rich{ Content: "Discord", diff --git a/go.mod b/go.mod index a03ab7c..ca5e8b3 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.14 require ( github.com/diamondburned/arikawa/v2 v2.0.5 - github.com/diamondburned/cchat v0.5.6 + github.com/diamondburned/cchat v0.6.0 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 diff --git a/go.sum b/go.sum index 31afc41..71b094f 100644 --- a/go.sum +++ b/go.sum @@ -29,6 +29,8 @@ github.com/diamondburned/arikawa/v2 v2.0.5 h1:X/jPfeEFj/Hzk26kudNJqtVkQb3vnh3tAj github.com/diamondburned/arikawa/v2 v2.0.5/go.mod h1:e+lhS20ni2luFEU06Pc8paCxgZL99/RZb77dOC82CF0= github.com/diamondburned/cchat v0.5.5 h1:YgI98ID9UQAgHbLFEyHQ2qcAJ5A2HcVZaq+A26njAQo= github.com/diamondburned/cchat v0.5.5/go.mod h1:IlMtF+XIvAJh0GL/2yFdf0/34w+Hdy5A1GgvSwAXtQI= +github.com/diamondburned/cchat v0.6.0 h1:XVql8slOho9FUxuJm/I7/XWr5l1XgxLc5SvcvI+ybp4= +github.com/diamondburned/cchat v0.6.0/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= diff --git a/internal/discord/session/session.go b/internal/discord/session/session.go index ebbadd1..0d500e1 100644 --- a/internal/discord/session/session.go +++ b/internal/discord/session/session.go @@ -45,7 +45,7 @@ func (s *Session) Name(ctx context.Context, l cchat.LabelContainer) (func(), err return s.state.Labels.AddPresenceLabel(s.state.UserID, l), nil } -func (s *Session) Columnate() int { return 0 } +func (s *Session) Columnate() bool { return false } func (s *Session) Disconnect() error { return s.state.CloseGracefully()