diff options
| author | ascpial <mail@ascpial.fr> | 2025-09-21 00:00:23 +0200 |
|---|---|---|
| committer | ascpial <mail@ascpial.fr> | 2025-09-21 00:00:23 +0200 |
| commit | 1d4994286d9d787724110821077cbba993b4f94a (patch) | |
| tree | b9ac8b626f3519deb2e1180a849af9256663d250 | |
| parent | 8a7189c3835a431b7fc16b189162f6f343e80b84 (diff) | |
fix(config): remove useless code
| -rw-r--r-- | main.go | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -235,19 +235,6 @@ func main() { } // interaction: /config - bot.HandleMessageComponent(func(s *discordgo.Session, i *discordgo.InteractionCreate, data *interaction.MessageComponentData, resp *cmd.ResponseBuilder) { - if len(data.Values) != 1 { - bot.LogError(errors.New("invalid data values"), "handle config modify, values: %#v", data.Values) - return - } - switch data.Values[0] { - case config.ModifyDisChannel: - config.HandleModifyDisChannel(s, i, data, resp) - default: - bot.LogError(errors.New("unknown value"), "detecting value %s", data.Values[0]) - return - } - }, commands.ConfigModify) bot.HandleMessageComponent(commands.ConfigMessageComponent, commands.OpenConfig) // xp role related bot.HandleMessageComponent(config.HandleXpRole, config.ModifyXpRole) |
