Fixed Backlogger method name

This commit fixes a mistake in the Backlogger interface, that is the
Backlog method was called Backlogger incorrectly.
This commit is contained in:
diamondburned 2020-10-09 10:27:38 -07:00
parent cfc0e00c8a
commit d62231a4ef
2 changed files with 5 additions and 5 deletions

View File

@ -236,12 +236,12 @@ type Author interface {
// freeze the UI until the method is cancelled. This works even when the backend
// does not use the context.
type Backlogger interface {
// Backlogger fetches messages before the given message ID into the
// Backlog fetches messages before the given message ID into the
// MessagesContainer.
//
// This method is technically a ContainerMethod, but is listed as an IOMethod
// because of the additional message ID parameter.
Backlogger(ctx context.Context, before ID, msgc MessagesContainer) error // Blocking
Backlog(ctx context.Context, before ID, msgc MessagesContainer) error // Blocking
}
// Commander is an optional interface that a session could implement for command

View File

@ -1101,14 +1101,14 @@ var Main = Packages{
IOMethod{ // technically a ContainerMethod.
method: method{
Comment: Comment{`
Backlogger fetches messages before the given message
ID into the MessagesContainer.
Backlog fetches messages before the given message ID
into the MessagesContainer.
This method is technically a ContainerMethod, but is
listed as an IOMethod because of the additional
message ID parameter.
`},
Name: "Backlogger",
Name: "Backlog",
},
Parameters: []NamedType{
{"ctx", "context.Context"},