Skip to content

Working slash commads - #2

Open
Simon-Noble wants to merge 8 commits into
JayCyrZak:mainfrom
Simon-Noble:main
Open

Working slash commads#2
Simon-Noble wants to merge 8 commits into
JayCyrZak:mainfrom
Simon-Noble:main

Conversation

@Simon-Noble

Copy link
Copy Markdown

This should now make the slash commands work as expected

@JayCyrZak JayCyrZak left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some issues.

Comment thread main.py

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread matching.py

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants