aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/main.go b/main.go
index 328b9b5..3b7495a 100644
--- a/main.go
+++ b/main.go
@@ -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)