Discord-S.C.U.M icon indicating copy to clipboard operation
Discord-S.C.U.M copied to clipboard

How does bot.checkToken work?

Open ahihiyou20 opened this issue 2 years ago • 5 comments

ahihiyou20 avatar Aug 18 '22 01:08 ahihiyou20

I was trying to check if my account's token is valid. But when i call bot.checkToken, it returned "(True, False)" as a tuple. What does "True" and "False" mean here? I thought it'll only return 1 value (True if the token is valid and False if not)


arandomnewaccount: that's what an old version of that function did. The latest version returns a requests.Response object. More info here: https://github.com/Merubokkusu/Discord-S.C.U.M/blob/master/docs/using/General.md#checktoken

reinstall discum - the pypi should be updated to the latest version

ahihiyou20 avatar Aug 18 '22 01:08 ahihiyou20

https://github.com/Merubokkusu/Discord-S.C.U.M/blob/a814f9500429ebd6b31c93cbae3c330bd8f1f89a/discum/discum.py#L119 I mean its still like this in the repo...

Edit: also upgraded to newest version it still gives a Tuple

Vinyzu avatar Aug 19 '22 16:08 Vinyzu

Well, my discum version is 1.4.1. I'm sure it's the newest version

ahihiyou20 avatar Aug 20 '22 02:08 ahihiyou20

As Vinyzu said, you can easily just check the source code to find out. In this case, the first boolean in the tuple indicates if the token is valid. The second boolean indicates if the token is locked.

SquarishRectangle avatar Sep 24 '22 18:09 SquarishRectangle

Okay another question. What will happen if your token is "locked"? I don't really understand what's "locked" in this situatation

And what will happen if your token is valid but it's also "locked"

ahihiyou20 avatar Sep 25 '22 00:09 ahihiyou20