Skip to content
This repository was archived by the owner on Dec 2, 2023. It is now read-only.

I have a SOLUTION for the code! #2

Open
nsde opened this issue Jun 6, 2021 · 1 comment
Open

I have a SOLUTION for the code! #2

nsde opened this issue Jun 6, 2021 · 1 comment

Comments

@nsde
Copy link

nsde commented Jun 6, 2021

I am not creating a pull request because I'm not sure how to use them, but anyways.

The code is not working really well, so I made it work.. kind of. Here are some code snippets to fix it:

  • put this in the line before POSTing the JSON: headers['Authorization'] = 'Bot ' + token, because this will tell the code that the code is ran by a bot, not a regular Discord user
@AnushK-Fro
Copy link
Owner

Hello,

Thank you for this. However, the invite links are supposed to be generated with a regular Discord token (not a bot). It’s intentional. I could potentially add an option for people to choose between generating via a bot and a regular Discord user.

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants