Working slash commads - #2
Open
Simon-Noble wants to merge 8 commits into
Open
Conversation
…maintain current functionality and add the ability to use slash commands.
JayCyrZak
requested changes
Sep 13, 2024
Owner
There was a problem hiding this comment.
Error when doing /lfg asap:
[2024-09-13 16:01:54] [ERROR ] discord.ext.commands.bot: Ignoring exception in command lfg
Traceback (most recent call last):
File "C:\Projects\IxianDevice\ixian-device-foss\venv\Lib\site-packages\discord\app_commands\commands.py", line 857, in _do_call
return await self._callback(self.binding, interaction, **params) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Projects\IxianDevice\ixian-device-foss\matching.py", line 338, in lfg
await ctx.reply("Match created!")
File "C:\Projects\IxianDevice\ixian-device-foss\venv\Lib\site-packages\discord\ext\commands\context.py", line 748, in reply
return await self.send(content, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Projects\IxianDevice\ixian-device-foss\venv\Lib\site-packages\discord\ext\commands\context.py", line 1077, in send
await self.interaction.response.send_message(**kwargs)
File "C:\Projects\IxianDevice\ixian-device-foss\venv\Lib\site-packages\discord\interactions.py", line 855, in send_message
await adapter.create_interaction_response(
File "C:\Projects\IxianDevice\ixian-device-foss\venv\Lib\site-packages\discord\webhook\async_.py", line 221, in request
raise NotFound(response, data)
discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Projects\IxianDevice\ixian-device-foss\venv\Lib\site-packages\discord\ext\commands\hybrid.py", line 444, in _invoke_with_namespace
value = await self._do_call(ctx, ctx.kwargs) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Projects\IxianDevice\ixian-device-foss\venv\Lib\site-packages\discord\app_commands\commands.py", line 876, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'lfg' raised an exception: NotFound: 404 Not Found (error code: 10062): Unknown interaction
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Projects\IxianDevice\ixian-device-foss\venv\Lib\site-packages\discord\ext\commands\hybrid.py", line 444, in _invoke_with_namespace
value = await self._do_call(ctx, ctx.kwargs) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Projects\IxianDevice\ixian-device-foss\venv\Lib\site-packages\discord\app_commands\commands.py", line 876, in _do_call
raise CommandInvokeError(self, e) from e
discord.ext.commands.errors.HybridCommandError: Hybrid command raised an error: Command 'lfg' raised an exception: NotFound: 404 Not Found (error code: 10062): Unknown interaction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This should now make the slash commands work as expected