Assigning ID hints outside of builders

Is it possible to assign id hints outside of builders? Currently it's impossible to juggle id hints between the dev bot and the main bot and I was wondering if there's a way to do this outside of the builder, maybe before the client is initialized
Solution:
You can use environment variables specifyig individual id hints or a separate file like config.ts which will have this: ```ts const prodHints = { hint1: "id hint 1", hint2: "id hint 2",...
Jump to solution
3 Replies
Solution
MRDGH2821
MRDGH2821•2mo ago
You can use environment variables specifyig individual id hints or a separate file like config.ts which will have this:
const prodHints = {
hint1: "id hint 1",
hint2: "id hint 2",
}

const devHints = {
// same thing as prodHints
}

const finalHint = process.env.NODE_ENV === 'development' ? devHints : prodHints

export default finalHint
const prodHints = {
hint1: "id hint 1",
hint2: "id hint 2",
}

const devHints = {
// same thing as prodHints
}

const finalHint = process.env.NODE_ENV === 'development' ? devHints : prodHints

export default finalHint
MRDGH2821
MRDGH2821•2mo ago
And then import them into the place where you need them There was also something called bulk overwrite by which you wouldn't need to specify id hints 🤔
ApplicationCommandRegistries.setDefaultBehaviorWhenNotIdentical(RegisterBehavior.BulkOverwrite);
ApplicationCommandRegistries.setDefaultBehaviorWhenNotIdentical(RegisterBehavior.BulkOverwrite);
dan
dan•2mo ago
This is smart, I like this. Thanks for the idea
Want results from more Discord servers?
Add your server