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

Obtaining client ID using bot token #27

Closed
tekulvw opened this issue Apr 25, 2016 · 8 comments
Closed

Obtaining client ID using bot token #27

tekulvw opened this issue Apr 25, 2016 · 8 comments
Assignees
Labels

Comments

@tekulvw
Copy link

tekulvw commented Apr 25, 2016

I contribute to an open source bot project designed for discord users to run their own (small) customized bot on their personal servers. With the introduction of bot accounts we've had a lot of users come to the support server asking how to get their bot to join a server. We'd like to be able to automatically get the client ID using the auth token so this initial set up process and first server join can be a bit more streamlined for the end user.

@b1naryth1ef
Copy link
Contributor

I believe we're planning on adding something to the manage applications page that allows generate a URL

@tekulvw
Copy link
Author

tekulvw commented Apr 25, 2016

Yeah, Jake told me about that, but this is so that a bot would have the capability to generate an oauth link itself (without permissions of course)

@jhgg
Copy link
Member

jhgg commented Apr 25, 2016

Will be available soon at:

https://discordapp.com/api/oauth2/applications/@me when using the bot token, will return the bot's app id, name, icon and description in the following format:

{
  "description": "Test",
  "icon": null,
  "id": "172150183260323840",
  "name": "Baba O-Riley"
}

Will close this issue when it's deployed & documented.

@Kowlin
Copy link
Contributor

Kowlin commented Apr 25, 2016

Just wondering, in your example given there isn't a client ID. Have you guys decided against that?

@meew0
Copy link
Contributor

meew0 commented Apr 25, 2016

There is...? The id property would be the client ID.

@Kowlin
Copy link
Contributor

Kowlin commented Apr 25, 2016

Ah my mistake, I thought the Client ID was smaller

@jhgg
Copy link
Member

jhgg commented Apr 26, 2016

This has been deployed. Leaving this open until the relevant docs are created. PRs welcome :D

@night night self-assigned this Jun 3, 2016
@night night mentioned this issue Jun 6, 2016
9 tasks
@jhgg jhgg closed this as completed Jun 6, 2016
@discord discord deleted a comment Apr 26, 2019
@ghost
Copy link

ghost commented Apr 26, 2019 via email

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

No branches or pull requests

6 participants