refactor(commands): rename RegisterCommands to UpdateCommands
This commit is contained in:
@@ -49,7 +49,7 @@ func (b *Bot) Start() error {
|
||||
ch := commands.NewCommandsHandler(b.logger, b.session)
|
||||
|
||||
// TODO: add real commands
|
||||
if err := ch.RegisterCommands(make(map[string]commands.Command)); err != nil {
|
||||
if err := ch.UpdateCommands(make(map[string]commands.Command)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ func NewCommandsHandler(logger *slog.Logger, session *discordgo.Session) *Comman
|
||||
return &CommandsHandler{logger, session}
|
||||
}
|
||||
|
||||
func (h *CommandsHandler) RegisterCommands(
|
||||
func (h *CommandsHandler) UpdateCommands(
|
||||
commands map[CommandName]Command,
|
||||
guildID ...string,
|
||||
) error {
|
||||
|
||||
Reference in New Issue
Block a user