sdb-fix-strict
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

sdb-fix-strict

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

Installing

install npm i sdb-fix-strict

That fixes

With out sdb-fix-strict:
image
Using sdb-fix-strict:
image

Dependencies

  • discord.js version 14+
  • Node.js version 16+

Some usage example

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)
			)
	]
})

Functions

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 ♥

Readme

Keywords

none

Package Sidebar

Install

npm i sdb-fix-strict

Weekly Downloads

5

Version

1.0.3

License

MIT

Unpacked Size

6.12 kB

Total Files

6

Last publish

Collaborators

  • makarasty