Need Help....Animated Status !load() could not be fired
GYATTT opened this issue · 6 comments
If i recall correctly I saw a major announcement that BetterDiscord was getting a Code Overhaul, which caused a ton of plugins to break, there currently isnt any ETA on many of them being fixed as they have to write it to work with the new code.
i have the same problem, how can i solve it ??
is it even going to be fixed?
Notice taken
- I followed the instructions above before opening this issue
Discord Version
.
Discord Release Channel
canary
BetterDiscord Version
1.7.0
Plugin Version
.
Expected behavior
Actual behavior
No response
For now, we will have to wait for the developers of BetterDiscord to solve the problem of the deprecated methods of the BdApi.
However, at the moment it is possible to solve the error by obtaining the authentication token and the user ID manually.
To do this, it is necessary to replace the values of the variables Status.authToken with the authentication token and this.currentUser with the user ID.
- Status.authToken = BdApi.findModule(m => m.default && m.default.getToken).default.getToken();
+ Status.authToken = "authentication token";
- this.currentUser = BdApi.findModule(m => m.default && m.default.getCurrentUser).default.getCurrentUser();
+ this.currentUser = "your discord user ID";
To obtain the token and the user ID, it is only necessary to access Discord through a browser, then access the network menu from the developer tools
There will be many more values within Network. Type /api into the field marked Filter and then select a result. Click the Headers tab. Scroll down until you see authorization. This is your Discord token.
For the user ID it's only necessary to right click on your user profile
Notice taken
- I followed the instructions above before opening this issue
Discord Version
.
Discord Release Channel
canary
BetterDiscord Version
1.7.0
Plugin Version
.
Expected behavior
Actual behavior
No response
For now, we will have to wait for the developers of BetterDiscord to solve the problem of the deprecated methods of the BdApi.
However, at the moment it is possible to solve the error by obtaining the authentication token and the user ID manually.
To do this, it is necessary to replace the values of the variables Status.authToken with the authentication token and this.currentUser with the user ID.
- Status.authToken = BdApi.findModule(m => m.default && m.default.getToken).default.getToken(); + Status.authToken = "authentication token"; - this.currentUser = BdApi.findModule(m => m.default && m.default.getCurrentUser).default.getCurrentUser(); + this.currentUser = "your discord user ID";To obtain the token and the user ID, it is only necessary to access Discord through a browser, then access the network menu from the developer tools
There will be many more values within Network. Type /api into the field marked Filter and then select a result. Click the Headers tab. Scroll down until you see authorization. This is your Discord token.
For the user ID it's only necessary to right click on your user profile
For me it works until I sign out from my browser. I sign in opera gx - copy my token from the network menu - paste it on the plugin - everything works fine, but at the moment I sign out from the browser stops working and this appears:
I guess if I dont sign out the token will be correct and it will work fine, but I don't want to keep the same account opened in the application and in the client at the same time.
There is a solution for this?
Added Input fields for userID and token in settings. It makes it easier to add and edit them.
https://gist.github.com/Holovektorez/4c24eab863ad1132c0f7f71fc5b47f07