#TypeError 'tuple' object is not callable
1 messages · Page 1 of 1 (latest)
Ignoring exception in on_application_command_error
Traceback (most recent call last):
File "venv\lib\site-packages\discord\client.py", line 382, in _run_event
await coro(*args, **kwargs)
File "venv\lib\site-packages\discord\commands\core.py", line 122, in wrapped
ret = await coro(arg)
File "venv\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
Your type in Option can only be a singular type
it is
@discord.option(name="submit_type", required=True, description="Type of feedback you want to be able to submit (Anonymous, Named, both)", choices=["Anonymous", "Named", "Both"])
can you show the full command definition
@slash_command(description="Setup for Feedback System", guild_ids=[947928573229031504])
@commands.has_permissions(administrator=True)
@discord.option(name="submit_type", required=True, description="Type of feedback you want to be able to submit (Anonymous, Named, both)", choices=["Anonymous", "Named", "Both"])
@commands.cooldown(1, 15, commands.BucketType.user)
async def setup(self, ctx: discord.ApplicationContext,
submit_channel: Option(discord.TextChannel, required=True,
description="Channel where you can submit your feedback"),
feedback_channel: Option(discord.TextChannel, required=True,
description="Channel where all feedbacks are shown"),
submit_type,
role: Option(discord.Role, required=True, description="Role which can delete and fetch feedbacks"),
title: Option(str, required=False, default=None, description="Title of embed"),
description: Option(str, required=False, default=None, description="Description of embed")):
bug on b7 
There's a bug in b7 with using TextChannel in Option, can you try master?
Yes