Amgelo
Amgelo
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by VeebS on 11/22/2024 in #djs-questions
Registration Request on Startup
that's what I personally do, specially helps if you have user-configured commands
67 replies
DIAdiscord.js - Imagine an app
Created by VeebS on 11/22/2024 in #djs-questions
Registration Request on Startup
or some command line variable
67 replies
DIAdiscord.js - Imagine an app
Created by VeebS on 11/22/2024 in #djs-questions
Registration Request on Startup
if you've already setup your entire logic to register commands on start, you could add an if check for an env variable, like REGISTER_COMMANDS or something
67 replies
how to pass variables from one interaction into the next?
but it's still possible
47 replies
how to pass variables from one interaction into the next?
I assume kyra meant that with some change to fast-get ids you wouldn't need the try catch block
47 replies
how to pass variables from one interaction into the next?
I'm pretty sure you'd simply just need to parse the string and see if it matches? I haven't used sapphire but it sounds like
parse(interaction) {
try {
const deserialized = store.deserialize(interaction.customId);
return deserialized.id === Id.SomeId ? this.some() : this.none();
} catch (e) {
return this.none();
}
}
parse(interaction) {
try {
const deserialized = store.deserialize(interaction.customId);
return deserialized.id === Id.SomeId ? this.some() : this.none();
} catch (e) {
return this.none();
}
}
47 replies
DIAdiscord.js - Imagine an app
Created by Moonlit Eclipse on 11/18/2024 in #djs-questions
Per Server Currency System
should be on #other-js-ts, not a djs issue
4 replies
DIAdiscord.js - Imagine an app
Created by Swyftey on 11/17/2024 in #djs-questions
What is the best way to detect a change in server ownership when the bot happens to be offline?
since I don't think this is djs related
12 replies
DIAdiscord.js - Imagine an app
Created by Swyftey on 11/17/2024 in #djs-questions
What is the best way to detect a change in server ownership when the bot happens to be offline?
and probably in #other-js-ts
12 replies
DIAdiscord.js - Imagine an app
Created by Swyftey on 11/17/2024 in #djs-questions
What is the best way to detect a change in server ownership when the bot happens to be offline?
I'd recommend you specify your entire setup since this really seems like an xy question
12 replies
DIAdiscord.js - Imagine an app
Created by Swyftey on 11/17/2024 in #djs-questions
What is the best way to detect a change in server ownership when the bot happens to be offline?
why not? :Thonk:
12 replies
DIAdiscord.js - Imagine an app
Created by Swyftey on 11/17/2024 in #djs-questions
What is the best way to detect a change in server ownership when the bot happens to be offline?
if the bot is no longer there you could just remove its data since there's no use for you to have it
12 replies
DIAdiscord.js - Imagine an app
Created by Swyftey on 11/17/2024 in #djs-questions
What is the best way to detect a change in server ownership when the bot happens to be offline?
why do you need to know who's the owner if the bot is no longer in the server?
12 replies
DIAdiscord.js - Imagine an app
Created by LukeZ on 11/14/2024 in #djs-questions
How to handle unhandled rejections?
I'm quoting you, just adding the fact that it's also better
36 replies
DIAdiscord.js - Imagine an app
Created by LukeZ on 11/14/2024 in #djs-questions
How to handle unhandled rejections?
yeah but it's not only easier, it's better
36 replies
DIAdiscord.js - Imagine an app
Created by LukeZ on 11/14/2024 in #djs-questions
How to handle unhandled rejections?
not a recommended practice
36 replies
DIAdiscord.js - Imagine an app
Created by Hachiko ✨ Rook on 11/11/2024 in #djs-questions
Following a tutorial from 2020 and unsure of how I'm supposed to define Intents.
use whichever fits your needs
30 replies
DIAdiscord.js - Imagine an app
Created by Hachiko ✨ Rook on 11/11/2024 in #djs-questions
Following a tutorial from 2020 and unsure of how I'm supposed to define Intents.
though bulkDelete will fetch first if you only specify a number anyways
30 replies
DIAdiscord.js - Imagine an app
Created by Hachiko ✨ Rook on 11/11/2024 in #djs-questions
Following a tutorial from 2020 and unsure of how I'm supposed to define Intents.
that bot only seems to fetch first to support filtering
30 replies
DIAdiscord.js - Imagine an app
Created by Hachiko ✨ Rook on 11/11/2024 in #djs-questions
Following a tutorial from 2020 and unsure of how I'm supposed to define Intents.
you can use the bulkDelete method then
30 replies