From cfa703618bcf3adca7c5c3904ab6cdd6661ec412 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Mon, 6 Apr 2020 11:48:59 -0800 Subject: [PATCH] Update comments for Godoc --- command-manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command-manager.go b/command-manager.go index d5ca647..b35e9af 100644 --- a/command-manager.go +++ b/command-manager.go @@ -35,7 +35,7 @@ func (c *CommandManager) AddCommand(command *Command) error { return nil } -// Removes the command named from the Commands array +// RemovesCommand removes the command named from the Commands array func (c *CommandManager) RemoveCommand(name string) error { deleted := false if _, ok := c.Commands[name]; ok { @@ -48,7 +48,7 @@ func (c *CommandManager) RemoveCommand(name string) error { return nil } -// Is the user ID passed in an owner of the bot +// IsOwner checks if the user ID passed in an owner of the bot func (c *CommandManager) IsOwner(id string) bool { for _, o := range c.Owners { if o == id {