Discord Components & Role Selection (#5)

This commit is contained in:
2023-04-01 01:23:37 -04:00
committed by GitHub
parent 5e6a433b92
commit e1038a15cd
25 changed files with 696 additions and 31 deletions

View File

@ -17,7 +17,7 @@ func NewComponentLoader(bot *Bot) *ComponentLoader {
}
}
func (loader *ComponentLoader) LoadComponent(component common.Component) {
func (loader *ComponentLoader) LoadComponent(component common.Module) {
if err := component.Initialize(loader); err != nil {
log.Print("Failed to load component: ", err)
}
@ -50,7 +50,7 @@ func (loader *ComponentLoader) OnEventComplete(handler func(common.Event) error)
return nil
}
func (loader *ComponentLoader) RegisterGameModule(ID string, plugin common.GameModule) error {
func (loader *ComponentLoader) RegisterChatSyncModule(ID string, plugin common.ChatSyncModule) error {
return fmt.Errorf("unimplemented")
}