#I am creating a command but getting this error

1 messages · Page 1 of 1 (latest)

deft sequoia
#

@upper swift
Are you still experiencing this error my friend?wave

upper swift
#
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

solid dock
#

text channel option is a bit bugged

#

you should use master as that contains the fix

upper swift
solid dock
#

?tag install

wet timberBOT
#
  1. Uninstall discord.py or any other forks of discord.py you might have with the namespace discord.
python -m pip uninstall discord.py discord -y
  1. 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
upper swift
#

am using 2.0.0b7

#

@solid dock i have installed it only

solid dock
#

im referring to the github version

upper swift
#

will that work perfectly according to the latest version ?

solid dock
#

it will have the latest commits and is not guaranteed to be stable

#

so tread carefully if you decide to get that version

upper swift
#

like i am scared of rewriting the whole bot again ig

fathom salmon
solid dock
#

^ which is why i told you to switch to it to fix that issue