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 application id not working #283

Closed
3 tasks done
lordzuku opened this issue May 7, 2022 · 4 comments
Closed
3 tasks done

slash commands application id not working #283

lordzuku opened this issue May 7, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@lordzuku
Copy link

lordzuku commented May 7, 2022

Summary

cannot differentiate between what bots the slash commands originate from

Reproduction Steps

attempted to get the application attribute while passing applications=True kwarg
tried with commands in a group & commands not in a group, couldnt get the application snowflake,

also i tried submitting application=snowflake_id kwarg, but got an error
then I tried making an empty object with the snowflake as an attribute id

obj.id = snowflake_id
application =obj
but that also gave an error

Code

async for cmd in self.message.channel.slash_commands(query="ping", applications=True):
    if not cmd.is_group():
        continue
    print(cmd.application)                
    for sub in cmd.children:
        if sub.name != "me":
            continue
        print(sub.application)

Expected Results

expedcted to see the snowflake of the bot querying the results
good if there is multiple bots with the same command allowing us to distinguish between them

Actual Results

None

System Information

  • Python v3.8.12-final
  • discord.py-self v2.0.0-alpha
    • discord.py-self pkg_resources: v1.9.1
  • aiohttp v3.7.4.post0
  • system info: Linux 4.18.0-240.22.1.el8_3.x86_64 ✨ add trusted users kwarg to bot class #1 SMP Thu Apr 8 19:01:30 UTC 2021

attempted on both windows pc and linux vps

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

@lordzuku lordzuku added the unconfirmed bug Unconfirmed bug label May 7, 2022
@dolfies dolfies added bug Something isn't working and removed unconfirmed bug Unconfirmed bug labels May 7, 2022
@dolfies
Copy link
Owner

dolfies commented May 7, 2022

Yeah, I might've forgotten to parse that :)

@lordzuku
Copy link
Author

lordzuku commented May 9, 2022

@dolfies anychance you could fix it <3 If you have a patreon etc idm signing up to for your help

pretty sure its line 196 in iterators.py where it isnt implementing logging the Data from applications

@dolfies
Copy link
Owner

dolfies commented May 9, 2022

@dolfies anychance you could fix it <3 If you have a patreon etc idm signing up to for your help

pretty sure its line 196 in iterators.py where it isnt implementing logging the Data from applications

I have it implemented locally but I'm adding/fixing a few more things related to app commands before pushing.

@dolfies
Copy link
Owner

dolfies commented May 13, 2022

Implemented.

@dolfies dolfies closed this as completed May 13, 2022
@dolfies dolfies added the fixed label May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants