ErdbeerbaerLP / DiscordIntegration-Core

Common module for the Discord Integration mod
https://modrinth.com/plugin/dcintegration
4 stars 21 forks source link

fix: slash commands not responding #137

Closed zhongfu closed 1 year ago

zhongfu commented 1 year ago

current configured cmds are stored in a Map<String, DiscordCommand>, and we check if a slash command is valid based on whether the command id exists in the map

we're using getCommandIdLong() though, which returns a long instead of a String

we should use getCommandId() instead (which returns a String representation of the command id)

ErdbeerbaerLP commented 1 year ago

Merged to 2.5.1 with https://github.com/ErdbeerbaerLP/DiscordIntegration-Core/commit/ef3d38a779350a8d2a8872fef8745266c3b729ef