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:
parent
9dc28023da
commit
ba43f691bc
2
go.mod
2
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
|
||||
|
|
|
@ -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 }
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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 }
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 }
|
||||
|
||||
|
|
Loading…
Reference in a new issue