Ignoring exception in on_interaction
Traceback (most recent call last):
File "C:\Users\fun\AppData\Roaming\Python\Python311\site-packages\discord\client.py", line 377, in _run_event
await coro(*args, **kwargs)
File "C:\Users\fun\AppData\Roaming\Python\Python311\site-packages\discord\bot.py", line 1167, in on_interaction
await self.process_application_commands(interaction)
File "C:\Users\fun\AppData\Roaming\Python\Python311\site-packages\discord\bot.py", line 848, in process_application_commands
await self.invoke_application_command(ctx)
File "C:\Users\fun\AppData\Roaming\Python\Python311\site-packages\discord\bot.py", line 1114, in invoke_application_command
await ctx.command.invoke(ctx)
File "C:\Users\fun\AppData\Roaming\Python\Python311\site-packages\discord\commands\core.py", line 372, in invoke
await self.prepare(ctx)
File "C:\Users\fun\AppData\Roaming\Python\Python311\site-packages\discord\commands\core.py", line 292, in prepare
if not await self.can_run(ctx):
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\fun\AppData\Roaming\Python\Python311\site-packages\discord\commands\core.py", line 400, in can_run
return await async_all(predicate(ctx) for predicate in predicates) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\fun\AppData\Roaming\Python\Python311\site-packages\discord\utils.py", line 699, in async_all
for elem in gen:
File "C:\Users\fun\AppData\Roaming\Python\Python311\site-packages\discord\commands\core.py", line 400, in <genexpr>
return await async_all(predicate(ctx) for predicate in predicates) # type: ignore
^^^^^^^^^^^^^^
TypeError: newscog.checkowner() missing 1 required positional argument: 'ctx'
async def checkowner(self,ctx:bridge.BridgeContext):
return False
@bridge.bridge_command(checks=[checkowner])
async def leave(self,ctx):
await ctx.guild.leave()