diff --git a/cchat.go b/cchat.go index 4c3097d..d154889 100644 --- a/cchat.go +++ b/cchat.go @@ -392,6 +392,16 @@ type Lister interface { // servers. This function can do IO, and the frontend should run this in a // goroutine. Servers(ServersContainer) (stop func(), err error) + // Columnate is optionally used by servers to give different nested servers its + // own nesting values. Top-level servers must start at 1. The zero-value (0) + // indicates that the server that implements this interface is inherently the + // children of its parent server. + // + // For example, in Discord, guilds can be placed in guild folders, but guilds + // and guild folders are put in the same column while guilds are actually + // children of the folders. To replicate this behavior, both guild and guild + // folders can return 1. + Columnate() int } // MemberDynamicSection represents a dynamically loaded member list section. The @@ -669,17 +679,6 @@ type Server interface { Identifier Namer - // Columnate is optionally used by servers to give different nested servers its - // own nesting values. Top-level servers must start at 1. The zero-value (0) - // indicates that the server that implements this interface is inherently the - // children of its parent server. - // - // For example, in Discord, guilds can be placed in guild folders, but guilds - // and guild folders are put in the same column while guilds are actually - // children of the folders. To replicate this behavior, both guild and guild - // folders can return 1. - Columnate() int - // Asserters. AsLister() Lister // Optional diff --git a/repository/gob/repository.gob b/repository/gob/repository.gob index 2d407ce..5967e56 100644 Binary files a/repository/gob/repository.gob and b/repository/gob/repository.gob differ diff --git a/repository/main.go b/repository/main.go index 531a866..cd8eab5 100644 --- a/repository/main.go +++ b/repository/main.go @@ -981,26 +981,6 @@ var Main = Packages{ {InterfaceName: "Namer"}, }, Methods: []Method{ - GetterMethod{ - method: method{ - Comment: Comment{` - Columnate is optionally used by servers to give - different nested servers its own nesting values. - Top-level servers must start at 1. The zero-value - (0) indicates that the server that implements this - interface is inherently the children of its parent - server. - - For example, in Discord, guilds can be placed in - guild folders, but guilds and guild folders are put - in the same column while guilds are actually - children of the folders. To replicate this behavior, - both guild and guild folders can return 1. - `}, - Name: "Columnate", - }, - Returns: []NamedType{{"", "int"}}, - }, AsserterMethod{ChildType: "Lister"}, AsserterMethod{ChildType: "Messenger"}, AsserterMethod{ChildType: "Commander"}, @@ -1021,6 +1001,26 @@ var Main = Packages{ `}, Name: "Lister", Methods: []Method{ + GetterMethod{ + method: method{ + Comment: Comment{` + Columnate is optionally used by servers to give + different nested servers its own nesting values. + Top-level servers must start at 1. The zero-value + (0) indicates that the server that implements this + interface is inherently the children of its parent + server. + + For example, in Discord, guilds can be placed in + guild folders, but guilds and guild folders are put + in the same column while guilds are actually + children of the folders. To replicate this behavior, + both guild and guild folders can return 1. + `}, + Name: "Columnate", + }, + Returns: []NamedType{{"", "int"}}, + }, ContainerMethod{ method: method{ Comment: Comment{`