Version 1.1.0 - Refactor + Intergration Backend

This commit is contained in:
2025-07-25 17:56:30 +02:00
parent a59d7a66db
commit 98cdae97c0
58 changed files with 244 additions and 70 deletions
+26
View File
@@ -0,0 +1,26 @@
const { ButtonBuilder, ButtonStyle } = require('discord.js');
class Button extends ButtonBuilder {
constructor(label, customId, style = ButtonStyle.Primary, link = null) {
super()
.setLabel(label)
if (link) {
this.setURL(link);
this.setStyle(ButtonStyle.Link);
} else{
this.setCustomId(customId)
}
this.setStyle(style);
}
setDisabled(disabled) {
return this.setDisabled(disabled);
}
setEmoji(emoji) {
return this.setEmoji(emoji);
}
}
module.exports = { Button };