diff --git a/connectors/discord/discord.go b/connectors/discord/discord.go index 66834a6..b81ea9c 100644 --- a/connectors/discord/discord.go +++ b/connectors/discord/discord.go @@ -431,6 +431,9 @@ func (d *Discord) SetRole(userID, roleID string) error { type CmdHandler func(s *discordgo.Session, i *discordgo.InteractionCreate) func (d *Discord) RegisterSlashCmd(c discordgo.ApplicationCommand, handler CmdHandler) error { + if !d.config.GetBool("registerSlash", true) { + return nil + } cmd, err := d.client.ApplicationCommandCreate(d.client.State.User.ID, d.guildID, &c) d.cmdHandlers[c.Name] = handler if err != nil { diff --git a/plugins/emojy/list.html b/plugins/emojy/list.html deleted file mode 100644 index a32eaa5..0000000 --- a/plugins/emojy/list.html +++ /dev/null @@ -1,107 +0,0 @@ - - -
- - - - - - - - - - - - -") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }