A library for discord.js
that fixes ActionRowBuilder<any>
errors by defining the ActionRowBuilder
type in CommonJS using JSDoc, intended to help use discord.js along with “strict”: true
in CommonJS
install npm i sdb-fix-strict
With out sdb-fix-strict
:
Using sdb-fix-strict
:
-
discord.js
version14
+ -
Node.js
version16
+
const sdbFixStrict = require("sdb-fix-strict");
interaction.reply({
content: 'do you love codding?',
components: [
sdbFixStrict.getActionRowButtons()
.setComponents(
new Discord.ButtonBuilder()
.setCustomId('loveCodding')
.setEmoji('❤')
.setStyle(Discord.ButtonStyle.Secondary)
)
]
})
const fix_s = require("sdb-fix-strict");
fix_s.getActionRowButtons()
fix_s.getActionRowChannelSelectMenu()
fix_s.getActionRowMentionableSelectMenu()
fix_s.getActionRowRoleSelectMenu()
fix_s.getActionRowStringSelectMenu()
fix_s.getActionRowUserSelectMenu()
fix_s.getActionRowTextInput()
Made with ♥