0xSynon
0xSynon
DIAdiscord.js - Imagine an app
Created by 0xSynon on 11/19/2023 in #djs-questions
Presence Activity with dynamic data
does that make sense?
30 replies
DIAdiscord.js - Imagine an app
Created by 0xSynon on 11/19/2023 in #djs-questions
Presence Activity with dynamic data
on djs documentation, the only thing I find about Rich Presence are the RichPresenceAssets and it doesn't seem to include the keys I'm interested in https://discord.js.org/docs/packages/discord.js/14.14.1/RichPresenceAssets:Class
30 replies
DIAdiscord.js - Imagine an app
Created by 0xSynon on 11/19/2023 in #djs-questions
Presence Activity with dynamic data
No description
30 replies
DIAdiscord.js - Imagine an app
Created by 0xSynon on 11/19/2023 in #djs-questions
Presence Activity with dynamic data
my question is how to do this with DiscordJS
30 replies
DIAdiscord.js - Imagine an app
Created by 0xSynon on 11/19/2023 in #djs-questions
Presence Activity with dynamic data
if my only way to achieve that is by setting a startTimestamp and it would calculate the elapsed time, i have no problem setting that to whatever timestamp represends midnight in the timzone i want to show
30 replies
DIAdiscord.js - Imagine an app
Created by 0xSynon on 11/19/2023 in #djs-questions
Presence Activity with dynamic data
You definitely can though, just saying. This guy makes 10 updates per second https://github.com/discord/discord-api-docs/issues/668
30 replies
DIAdiscord.js - Imagine an app
Created by 0xSynon on 11/19/2023 in #djs-questions
Presence Activity with dynamic data
Surely if you can show time elapsed at the second, you can show a clock
30 replies
DIAdiscord.js - Imagine an app
Created by 0xSynon on 11/19/2023 in #djs-questions
Presence Activity with dynamic data
How does League of Legends do it?
30 replies
DIAdiscord.js - Imagine an app
Created by 0xSynon on 11/19/2023 in #djs-questions
Presence Activity with dynamic data
discord's API supports Rich presence with timers, I know how I could replicate it with setTimeout but it sounds so silly, I'm thinking there has to be a better way, that's what I'm asking here
30 replies
DIAdiscord.js - Imagine an app
Created by 0xSynon on 11/19/2023 in #djs-questions
Presence Activity with dynamic data
I want the bot to show, as its activity, the time in a specific timezone without adapting to any user's timezone
30 replies
DIAdiscord.js - Imagine an app
Created by 0xSynon on 11/19/2023 in #djs-questions
Presence Activity with dynamic data
I don't want it to adapt to the viewer's timezone
30 replies
DIAdiscord.js - Imagine an app
Created by 0xSynon on 11/19/2023 in #djs-questions
Presence Activity with dynamic data
but if the answer is setInterval, I'm fine with that too, just wondering if there are API limits I should be aware of
30 replies
DIAdiscord.js - Imagine an app
Created by 0xSynon on 11/19/2023 in #djs-questions
Presence Activity with dynamic data
my question is still in regards to Discord API (and more specifically, the high level API from DiscordJS)
30 replies
DIAdiscord.js - Imagine an app
Created by 0xSynon on 11/19/2023 in #djs-questions
Presence Activity with dynamic data
yeah my main question is should I use setInterval to update the presence each second or is there a way to leverage timers like how video games do when you're in a matchmaking
30 replies
DIAdiscord.js - Imagine an app
Created by 0xSynon on 11/19/2023 in #djs-questions
Presence Activity with dynamic data
Discord version: discord.js@14.11.0 Node version: v18.16.0
30 replies