Fix - exceptions on button interactions
@@ -887,6 +887,9 @@ class SlashCommand:
to_use = msg["d"]
+ if to_use["type"] not in (1, 2):
+ return # to only process ack and slash-commands and exclude other interactions like buttons
+
if to_use["data"]["name"] in self.commands:
ctx = context.SlashContext(self.req, to_use, self._discord, self.logger)
