bumped cchat

This commit is contained in:
diamondburned 2021-03-18 14:27:24 -07:00
parent 9dc28023da
commit ba43f691bc
7 changed files with 7 additions and 7 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.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

View File

@ -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 }

View File

@ -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

View File

@ -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 }

View File

@ -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 }

View File

@ -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.

View File

@ -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 }