is this wrong for making embeds

so i have an entire folder for components (embeds, buttons, button rows, and...) then i have a file for the things that are repeated like this:
export function _embedStatics(){
return {
author: {
name: "RoboPlix",
icon_url: "https://plixhost-cdn.s3.ir-thr-at1.arvanstorage.ir/roboplix.png"
},
footer: {
text: "Made With ❤️ By PlixSMP Developers"
},
timestamp: Date.now()
}
}
export function _embedStatics(){
return {
author: {
name: "RoboPlix",
icon_url: "https://plixhost-cdn.s3.ir-thr-at1.arvanstorage.ir/roboplix.png"
},
footer: {
text: "Made With ❤️ By PlixSMP Developers"
},
timestamp: Date.now()
}
}
but im wondering is this the standard or just dumb?
2 Replies
d.js toolkit
d.js toolkit6mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
duck
duck6mo ago
it's perfectly normal to do furthermore it's entirely up to you how you want to structure/organize your code, so even if it weren't normal, it'd still be perfectly valid you are not required to follow any standard for structure

Did you find this page helpful?