discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

Inaccurate wording around token access

Open Jupith opened this issue 1 year ago • 6 comments

Description

The dev site states: For security purposes, tokens can only be viewed once, when created. If you forgot or lost access to your token, please regenerate a new one.

However this is not true, due to behavior change several months ago tokens are no longer returned upon bot creation, the easy fix would be just to change this wording, however the behavior described makes sense, and is better than having to create a bot then "reset" the token just to have access to it for the first time.

A better flow would be just adding a check to the bot creation endpoint to make sure there isnt already a user tied to the app, if there is, give a 204 just like it does atm, if there isnt a bot user return the token and display it on the dev portal for use.

Steps to Reproduce

Create a bot user on the dev portal

Expected Behavior

You expect a token to be made available for use after creation.

Current Behavior

You need to reset your token.. even tho you may have never seen your token.

Screenshots/Videos

No response

Client and System Information

any

Jupith avatar Jul 09 '22 23:07 Jupith

Agreed!

ratelimit-thief avatar Jul 10 '22 00:07 ratelimit-thief

https://github.com/discord/discord-api-docs/issues/4633#issuecomment-1064409820

AlmostSuspense avatar Jul 14 '22 19:07 AlmostSuspense

#4633 (comment)

Bit hypocritical of me having said that in the past i agree haha, but this issue is more about the wording being wrong which is a valid issue, i just also happen to be asking they start giving us out bot tokens on creation again.

Jupith avatar Jul 14 '22 19:07 Jupith

i linked snek's message about "when created" referring to the token's creation instead of the bot's creation. it'd improve qol if it was like you suggested but they don't seem to want to change that as per that issue :/

AlmostSuspense avatar Jul 14 '22 19:07 AlmostSuspense

I see, i miss read that part, i guess they just don't exist at all until regenerated?

Jupith avatar Jul 14 '22 19:07 Jupith

i guess so ~~i feel like they just didn't want to admit their mistake /hj~~

AlmostSuspense avatar Jul 14 '22 19:07 AlmostSuspense

It seems like this issue is really a feature request for something that we arent planning on changing any time soon, so Im gonna close it. Please let me know if Ive misunderstood.

yonilerner avatar Jan 06 '23 22:01 yonilerner