aiko-chan-ai / DiscordBotClient

A patched version of discord, with bot login & Vencord support
GNU General Public License v3.0
751 stars 48 forks source link

Error when renaming, changing permissions, and adding roles to users or bots #52

Closed CE1CECL closed 1 year ago

CE1CECL commented 1 year ago

It seems like a discord API issue, the error code is {"message": "The request body contains invalid JSON.", "code": 50109} and might be your html, because you are mixing v10 and v9 apis, which you cannot do, however, api v6, on my client, works just fine. This issue was reported to me in my DM's when I used your client on my website for like a couple of days, it was reverted for this, though reverting clients can cause cache issues (https://github.com/ChrisEric1/ChrisEric1.GitHub.io/issues/18) for others who cannot figure out how to clear their browser cache.

CE1CECL commented 1 year ago

Also got DBC working on android! Screenshot_20230707-191915 Capture

aiko-chan-ai commented 1 year ago

Wait...:skull:

aiko-chan-ai commented 1 year ago

Also got DBC working on android! Screenshot_20230707-191915 Capture

Nice :+1:

aiko-chan-ai commented 1 year ago

because you are mixing v10 and v9 api

it's really not that much different

aiko-chan-ai commented 1 year ago

@CE1CECL

https://github.com/aiko-chan-ai/DiscordBotClient/assets/71698422/8a7b66bd-9bbc-41aa-a80f-a1023ba50a9d

CE1CECL commented 1 year ago

@CE1CECL 2023-07-10.18-14-49.mp4

Was that the new commit that fixed it, or was nothing done when recording? I can test it later myself when I have time.

aiko-chan-ai commented 1 year ago

Was that the new commit that fixed it, or was nothing done when recording? I can test it later myself when I have time.

it's not a commit to fix, because idk what happened

aiko-chan-ai commented 1 year ago

image error due to your api @CE1CECL image

CE1CECL commented 1 year ago

image error due to your api @CE1CECL image

Ah ok, seems like CORSflare is worse than I thought, since I reverted the CORSflare thingy, that one person had their issue fixed. The code is quite a mess anyways, but Samual used something before though it doesn't work anymore, still AFAIK used workers.dev with a tk domain (even asked about it in a issue in that repo). Though IDK how changing the API endpoint makes the app work anymore? (since im on linux now lol).

Maybe its https://github.com/ChrisEric1/ChrisEric1.GitHub.io/blob/old/CORSflare.js#L198-L211 and I didn't catch it

aiko-chan-ai commented 1 year ago

:sob:

CE1CECL commented 1 year ago

sob

Yeah sorry for the trouble though, really am :(

CE1CECL commented 1 year ago

Wonder if people would like it going through someone else's api, nowadays, but then again some people who cant just run a zip extension through their browser are just idk (though on rare cases, chromebooks, like really old ones, or managed ones cant download anything, so how will that work?)

aiko-chan-ai commented 1 year ago

if using proxy api, it's easy to get rate limit :/

CE1CECL commented 1 year ago

if using proxy api, it's easy to get rate limit :/

That too is true but i used cloudflare because discord uses them too, so i would think workers.dev would pass my ip and all needed info over?

aiko-chan-ai commented 1 year ago

Maybe...