Skip to content
New issue

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

Slash Commands With Arguments Are Not Sent #695

Open
3 tasks done
MoritzHinterleitner opened this issue May 17, 2024 · 5 comments
Open
3 tasks done

Slash Commands With Arguments Are Not Sent #695

MoritzHinterleitner opened this issue May 17, 2024 · 5 comments
Labels
unconfirmed bug Unconfirmed bug

Comments

@MoritzHinterleitner
Copy link

MoritzHinterleitner commented May 17, 2024

Summary

Slash Commands With Arguments Are Not Sent

Reproduction Steps

for example this timeout command. await child.call(channel=channel, user=user). i have tried with several different commands and the user had the appropriate permissions and it works as a user

Code

async for command in channel.slash_commands(query="timeout"):
            if command.name == "untimeout":
                break
            print(f"command: {command}")
            user = client.get_user(userid)
        
            command = await command.__call__(channel=channel, user=user)

Expected Results

the command in sent and executed in the channel

Actual Results

no output of the user running the command in the channel

System Information

  • Python v3.12.2-final
  • discord.py-self v2.1.0-alpha
    • discord.py-self metadata: v2.1.0a4847+gb813c625
  • aiohttp v3.9.5
  • system info: Windows 11 10.0.22631

Checklist

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • I am using a user token (and it isn't visible in the code).

Additional Information

No response

@MoritzHinterleitner MoritzHinterleitner added the unconfirmed bug Unconfirmed bug label May 17, 2024
@ozanbayram
Copy link

I'm facing this problem too. Did you find any solution?

@MoritzHinterleitner
Copy link
Author

MoritzHinterleitner commented Aug 25, 2024

Yes I did but I can't remember :/ I will look for it but it might be a week or two

@isaaccs
Copy link

isaaccs commented Sep 19, 2024

any update ?

@MoritzHinterleitner
Copy link
Author

No sadly I deleted all my code when I reset my pc sorry

@residex
Copy link

residex commented Nov 12, 2024

to fix it install dev version
git clone https://github.com/dolfies/discord.py-self cd discord.py-self pip3 install .

then use new commands function
commands = await message.channel.application_commands()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unconfirmed bug Unconfirmed bug
Projects
None yet
Development

No branches or pull requests

4 participants