#I am creating a command but getting this error
1 messages · Page 1 of 1 (latest)
Ignoring exception in on_application_command_error
Traceback (most recent call last):
File "C:\Users\88\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\commands\core.py", line 122, in wrapped
ret = await coro(arg)
File "C:\Users\88\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\commands\core.py", line 810, in _invoke
arg = obj_type(state=ctx.interaction._state, data=_data, **kw)
TypeError: 'tuple' object is not callable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\88\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 382, in _run_event
await coro(*args, **kwargs)
File "D:\Discord Stuff\Grape Workspace\Grape\config\errorhandler.py", line 76, in on_application_command_error
raise error
File "C:\Users\Dinesh\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\bot.py", line 1098, in invoke_application_command
await ctx.command.invoke(ctx)
File "C:\Users\Dinesh\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\commands\core.py", line 331, in invoke
await injected(ctx)
File "C:\Users\88\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\commands\core.py", line 122, in wrapped
ret = await coro(arg)
File "C:\Users\88\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\commands\core.py", line 1091, in _invoke
await command.invoke(ctx)
File "C:\Users\88\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\commands\core.py", line 331, in invoke
await injected(ctx)
File "C:\Users\88\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\commands\core.py", line 128, in wrapped
raise ApplicationCommandInvokeError(exc) from exc
discord.errors.ApplicationCommandInvokeError: Application Command raised an exception: TypeError: 'tuple' object is not callable
The command is in the image
how could i use that
?tag install
- Uninstall
discord.pyor any other forks of discord.py you might have with the namespacediscord.
python -m pip uninstall discord.py discord -y
- Install
py-cord
python -m pip install py-cord
Installing other builds:
Note: You need to have git installed. Use !git to find out how to install git.
Updating the module to Alpha (unstable):
pip install -U git+https://github.com/Pycord-Development/pycord
Updating to beta:
pip install py-cord==2.0.0b7
im referring to the github version
will that work perfectly according to the latest version ?
it will have the latest commits and is not guaranteed to be stable
so tread carefully if you decide to get that version
can you tell me when the bug will be fixed
like i am scared of rewriting the whole bot again ig
it's already fixed on master
^ which is why i told you to switch to it to fix that issue
