Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slash commands & menus #42

Closed
FeelsBadMan1 opened this issue May 22, 2021 · 3 comments
Closed

Slash commands & menus #42

FeelsBadMan1 opened this issue May 22, 2021 · 3 comments

Comments

@FeelsBadMan1
Copy link

Hello, i created a bot and now want to completly switch from textcommands to slashcommands. everything working now exopect the menus. the bot is adding the reactions but if they become pressed nothing is happening. i not checked anything there and before at the point where i used textcommands it worked. i alredy asked in the slashcommand supportserver but the owner told me that he cant help cause its out of his knowlage. it would be nice if anyone could help me with that....

@lgaan
Copy link

lgaan commented May 22, 2021

It seems like you're describing an external library here? If so, there isn't really anything we can answer with since its not related to the main discord.py library.

It's best you wait for version 2.0 which will release slash command support, you can see progress at https://github.com/Rapptz/discord.py/projects/3

@Rapptz Rapptz closed this as completed May 22, 2021
@FeelsBadMan1
Copy link
Author

hmm okey but if i click on the reaction that the bot is adding it gives me this error:

An exception has occurred while executing command `play`:
Traceback (most recent call last):
  File "D:\Downloads\Python\python 3.8.7\lib\site-packages\discord_slash\client.py", line 744, in invoke_command
    await coro
  File "D:\Downloads\Python\python 3.8.7\lib\site-packages\discord_slash\model.py", line 227, in invoke
    return await self.func(self.cog, *args, **kwargs)
  File "D:\my_python_projects\MongoDB Test\Cogs\music.py", line 491, in play
    await ctx.send(f'```ini\nAdded {track.title} to the Queue\n```', delete_after=15)
  File "D:\Downloads\Python\python 3.8.7\lib\site-packages\discord_slash\context.py", line 211, in send
    await self._http.post_initial_response(json_data, self.interaction_id, self.__token)
  File "D:\Downloads\Python\python 3.8.7\lib\site-packages\discord\http.py", line 250, in request
    raise NotFound(r, data)
discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction

@lgaan
Copy link

lgaan commented May 23, 2021

hmm okey but if i click on the reaction that the bot is adding it gives me this error:

An exception has occurred while executing command `play`:
Traceback (most recent call last):
  File "D:\Downloads\Python\python 3.8.7\lib\site-packages\discord_slash\client.py", line 744, in invoke_command
    await coro
  File "D:\Downloads\Python\python 3.8.7\lib\site-packages\discord_slash\model.py", line 227, in invoke
    return await self.func(self.cog, *args, **kwargs)
  File "D:\my_python_projects\MongoDB Test\Cogs\music.py", line 491, in play
    await ctx.send(f'```ini\nAdded {track.title} to the Queue\n```', delete_after=15)
  File "D:\Downloads\Python\python 3.8.7\lib\site-packages\discord_slash\context.py", line 211, in send
    await self._http.post_initial_response(json_data, self.interaction_id, self.__token)
  File "D:\Downloads\Python\python 3.8.7\lib\site-packages\discord\http.py", line 250, in request
    raise NotFound(r, data)
discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction

As the traceback clearly shows, this error originates from the discord_slash module, which as I said is not related to discord.py or discord-ext-menus.

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

No branches or pull requests

3 participants