From ba43f691bccc03cd57fe50bed16f7e05973872d5 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Thu, 18 Mar 2021 14:27:24 -0700 Subject: [PATCH] bumped cchat --- go.mod | 2 +- internal/discord/session/channel/category/category.go | 2 +- internal/discord/session/channel/channel.go | 2 +- internal/discord/session/guild/folder/folder.go | 2 +- internal/discord/session/guild/guild.go | 2 +- internal/discord/session/private/hub/server.go | 2 +- internal/discord/session/private/private.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index 7a7fb44..a03ab7c 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.5 + github.com/diamondburned/cchat v0.5.6 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/internal/discord/session/channel/category/category.go b/internal/discord/session/channel/category/category.go index 385e5d6..6928a88 100644 --- a/internal/discord/session/channel/category/category.go +++ b/internal/discord/session/channel/category/category.go @@ -80,7 +80,7 @@ func (c *Category) Name(_ context.Context, l cchat.LabelContainer) (func(), erro return c.state.Labels.AddChannelLabel(c.id, l), nil } -func (c *Category) Columnate() int { return 2 } +func (c *Category) Columnate() bool { return false } func (c *Category) AsLister() cchat.Lister { return c } diff --git a/internal/discord/session/channel/channel.go b/internal/discord/session/channel/channel.go index 8df38b8..71f824b 100644 --- a/internal/discord/session/channel/channel.go +++ b/internal/discord/session/channel/channel.go @@ -57,7 +57,7 @@ func (ch Channel) Name(_ context.Context, l cchat.LabelContainer) (func(), error return ch.State.Labels.AddChannelLabel(ch.Channel.ID, l), nil } -func (ch Channel) Columnate() int { return 2 } +func (ch Channel) Columnate() bool { return false } func (ch Channel) AsCommander() cchat.Commander { return ch.commander diff --git a/internal/discord/session/guild/folder/folder.go b/internal/discord/session/guild/folder/folder.go index 16fa1ec..92da183 100644 --- a/internal/discord/session/guild/folder/folder.go +++ b/internal/discord/session/guild/folder/folder.go @@ -60,7 +60,7 @@ func (gf *GuildFolder) Name(ctx context.Context, l cchat.LabelContainer) (func() return func() {}, nil } -func (gf *GuildFolder) Columnate() int { return 1 } +func (gf *GuildFolder) Columnate() bool { return false } // IsLister returns true. func (gf *GuildFolder) AsLister() cchat.Lister { return gf } diff --git a/internal/discord/session/guild/guild.go b/internal/discord/session/guild/guild.go index 868d5c8..229e843 100644 --- a/internal/discord/session/guild/guild.go +++ b/internal/discord/session/guild/guild.go @@ -48,7 +48,7 @@ func (g *Guild) Name(ctx context.Context, l cchat.LabelContainer) (func(), error return g.state.Labels.AddGuildLabel(g.id, l), nil } -func (g *Guild) Columnate() int { return 1 } +func (g *Guild) Columnate() bool { return true } func (g *Guild) AsLister() cchat.Lister { return g } diff --git a/internal/discord/session/private/hub/server.go b/internal/discord/session/private/hub/server.go index 33a6658..e376bd9 100644 --- a/internal/discord/session/private/hub/server.go +++ b/internal/discord/session/private/hub/server.go @@ -143,7 +143,7 @@ func (hub *Server) Name(_ context.Context, l cchat.LabelContainer) (func(), erro return func() {}, nil } -func (hub *Server) Columnate() int { return 2 } +func (hub *Server) Columnate() bool { return false } // ActiveChannelIDs returns the list of active channel IDs, that is, the channel // IDs that should be displayed separately. diff --git a/internal/discord/session/private/private.go b/internal/discord/session/private/private.go index 6f48bf9..2e099a2 100644 --- a/internal/discord/session/private/private.go +++ b/internal/discord/session/private/private.go @@ -96,7 +96,7 @@ func (priv Private) Name(_ context.Context, l cchat.LabelContainer) (func(), err return func() {}, nil } -func (priv Private) Columnate() int { return 1 } +func (priv Private) Columnate() bool { return true } func (priv Private) AsLister() cchat.Lister { return priv }