We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using the ephemeral= keyword argument causes errors when it is passed into the prefix-command version of the bridge command.
Using any ephemeral keyword arguments
ephemeral
@bridge_command(name="commands", description="This page lists all commands") async def _commands(self, context: ApplicationContext) -> None: await context.defer(ephemeral=True) await context.respond("Commands List", ephemeral=True)
The ephemeral keyword argument should instead be ignored. This could be as simple as a:
if kwargs.get("ephemeral") is not None: del kwargs["ephemeral"]
This is in fact exactly what I added in both discord/message.py line 1625 and discord/ext/bridge/context.py line 153 to get it to work temporarily.
discord/message.py
discord/ext/bridge/context.py
Ignoring exception in command commands: Traceback (most recent call last): File "/home/krishnan/Coding/Hobby/ChessCord/ChessCordv2.0/venv/lib/python3.10/site-packages/discord/ext/commands/core.py", line 181, in wrapped ret = await coro(*args, **kwargs) File "/home/krishnan/Coding/Hobby/ChessCord/ChessCordv2.0/slash/help.py", line 38, in _commands await context.defer(ephemeral=True) File "/home/krishnan/Coding/Hobby/ChessCord/ChessCordv2.0/venv/lib/python3.10/site-packages/discord/ext/bridge/context.py", line 101, in defer return await self._defer(*args, **kwargs) File "/home/krishnan/Coding/Hobby/ChessCord/ChessCordv2.0/venv/lib/python3.10/site-packages/discord/ext/bridge/context.py", line 153, in _defer return await self._get_super("trigger_typing")(*args, **kwargs) TypeError: Messageable.trigger_typing() got an unexpected keyword argument 'ephemeral'
and
Ignoring exception in command commands: Traceback (most recent call last): File "/home/krishnan/Coding/Hobby/ChessCord/ChessCordv2.0/venv/lib/python3.10/site-packages/discord/ext/commands/core.py", line 181, in wrapped ret = await coro(*args, **kwargs) File "/home/krishnan/Coding/Hobby/ChessCord/ChessCordv2.0/slash/help.py", line 40, in _commands await context.respond( File "/home/krishnan/Coding/Hobby/ChessCord/ChessCordv2.0/venv/lib/python3.10/site-packages/discord/ext/bridge/context.py", line 81, in respond return await self._respond(*args, **kwargs) File "/home/krishnan/Coding/Hobby/ChessCord/ChessCordv2.0/venv/lib/python3.10/site-packages/discord/ext/bridge/context.py", line 147, in _respond message = await self._get_super("reply")(*args, **kwargs) File "/home/krishnan/Coding/Hobby/ChessCord/ChessCordv2.0/venv/lib/python3.10/site-packages/discord/ext/commands/context.py", line 399, in reply return await self.message.reply(content, **kwargs) File "/home/krishnan/Coding/Hobby/ChessCord/ChessCordv2.0/venv/lib/python3.10/site-packages/discord/message.py", line 1625, in reply return await self.channel.send(content, reference=self, **kwargs) TypeError: Messageable.send() got an unexpected keyword argument 'ephemeral'
discord.Intents.all
This can also apply to other slash-command-specific kwargs, which I can't specifically think of off the top of my head.
The text was updated successfully, but these errors were encountered:
krishnans2006
Successfully merging a pull request may close this issue.
Summary
Using the ephemeral= keyword argument causes errors when it is passed into the prefix-command version of the bridge command.
Reproduction Steps
Using any
ephemeral
keyword argumentsMinimal Reproducible Code
Expected Results
The ephemeral keyword argument should instead be ignored. This could be as simple as a:
This is in fact exactly what I added in both
discord/message.py
line 1625 anddiscord/ext/bridge/context.py
line 153 to get it to work temporarily.Actual Results
and
Intents
discord.Intents.all
System Information
Checklist
Additional Context
This can also apply to other slash-command-specific kwargs, which I can't specifically think of off the top of my head.
The text was updated successfully, but these errors were encountered: