Tsuni
DIAdiscord.js - Imagine an app
•Created by Tsuni on 7/29/2024 in #djs-questions
Get icon of current game from Member object
found a solution from the Discord Developers server (https://discord.com/channels/613425648685547541/1183059417755815956), I need to make a request to https://discord.com/api/v10/applications/<app_id>/rpc and the icon hash is there
9 replies
DIAdiscord.js - Imagine an app
•Created by Tsuni on 7/29/2024 in #djs-questions
Get icon of current game from Member object
9 replies
DIAdiscord.js - Imagine an app
•Created by Tsuni on 7/29/2024 in #djs-questions
Get icon of current game from Member object
I have the avatar, banner, custom emoji, and rich presence assets working fine (https://github.com/TetraTsunami/discord-github-preview), but I appreciate the advice :)
9 replies
DIAdiscord.js - Imagine an app
•Created by Tsuni on 7/29/2024 in #djs-questions
Get icon of current game from Member object
unfortunately doesn't seem to be available to bots, unless I'm being foolish
9 replies
PD🧩 Plasmo Developers
•Created by ibrahimyaacob on 5/28/2024 in #🔰newbie
I want to modify the DOM, which api should i use ?
This JS works on this HTML, too.
My understanding is that the "main" world is the context of the page's JS and its globals. It would be bad to have every extension running in that same namespace, because if they were to, for example, reassign a global it would break other extensions that relied on that global. I don't think it has much, if any, effect on what you can do with the DOM, since that's not JS.
11 replies
PD🧩 Plasmo Developers
•Created by ibrahimyaacob on 5/28/2024 in #🔰newbie
I want to modify the DOM, which api should i use ?
I’m not sure you need a main world content script for that? You can add classes to arbitrary elements and whatnot from CSUI which I’m pretty sure isn’t main world
11 replies