Stew
Stew
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Stew on 3/22/2024 in #djs-questions
TypeError [ColorConvert]: Unable to convert "16705372" to a number
Thanks for the dedicated time tho
16 replies
DIAdiscord.js - Imagine an app
Created by Stew on 3/22/2024 in #djs-questions
TypeError [ColorConvert]: Unable to convert "16705372" to a number
This fixed the issue, I didn't even know I was using such an old version of d.js@dev
16 replies
DIAdiscord.js - Imagine an app
Created by Stew on 3/22/2024 in #djs-questions
TypeError [ColorConvert]: Unable to convert "16705372" to a number
16 replies
DIAdiscord.js - Imagine an app
Created by Stew on 3/22/2024 in #djs-questions
TypeError [ColorConvert]: Unable to convert "16705372" to a number
In this context:
await interaction.reply({
embeds: [new EmbedBuilder()
.setColor(Colors.Yellow)
.setDescription("...")
],
});
await interaction.reply({
embeds: [new EmbedBuilder()
.setColor(Colors.Yellow)
.setDescription("...")
],
});
16 replies
DIAdiscord.js - Imagine an app
Created by Stew on 3/22/2024 in #djs-questions
TypeError [ColorConvert]: Unable to convert "16705372" to a number
.setColor(Colors.Yellow)
16 replies
DIAdiscord.js - Imagine an app
Created by Stew on 3/22/2024 in #djs-questions
TypeError [ColorConvert]: Unable to convert "16705372" to a number
TypeError [ColorConvert]: Unable to convert "16705372" to a number.
at resolveColor (/node_modules/discord.js/src/util/Util.js:293:11)
at EmbedBuilder.setColor (/node_modules/discord.js/src/structures/EmbedBuilder.js:23:36)
at PromoCommand.run (/commands/promo/promo.js:174:18)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async CommandHandler.onInteraction (/node_modules/slash-commando/dist/types/BaseHandler.js:65:13) {
code: 'ColorConvert'
}
TypeError [ColorConvert]: Unable to convert "16705372" to a number.
at resolveColor (/node_modules/discord.js/src/util/Util.js:293:11)
at EmbedBuilder.setColor (/node_modules/discord.js/src/structures/EmbedBuilder.js:23:36)
at PromoCommand.run (/commands/promo/promo.js:174:18)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async CommandHandler.onInteraction (/node_modules/slash-commando/dist/types/BaseHandler.js:65:13) {
code: 'ColorConvert'
}
16 replies
DIAdiscord.js - Imagine an app
Created by Stew on 3/22/2024 in #djs-questions
TypeError [ColorConvert]: Unable to convert "16705372" to a number
I tried hardcoding the values like this:
.setColor(16776960)
.setColor(16776960)
but it prints the same error for some reason
16 replies
DIAdiscord.js - Imagine an app
Created by Stew on 3/22/2024 in #djs-questions
TypeError [ColorConvert]: Unable to convert "16705372" to a number
It errors for .setColor(Colors.Yellow) too
16 replies
DIAdiscord.js - Imagine an app
Created by Stew on 3/22/2024 in #djs-questions
TypeError [ColorConvert]: Unable to convert "16705372" to a number
The errors indicate that the line where it happens use .setColor(Colors.Red)
16 replies
DIAdiscord.js - Imagine an app
Created by Stew on 3/22/2024 in #djs-questions
TypeError [ColorConvert]: Unable to convert "16705372" to a number
I added the dev release tag
16 replies
DIAdiscord.js - Imagine an app
Created by Stew on 3/22/2024 in #djs-questions
TypeError [ColorConvert]: Unable to convert "16705372" to a number
const { EmbedBuilder, Colors, resolveColor } = require('discord.js');
16 replies
DIAdiscord.js - Imagine an app
Created by Stew on 3/22/2024 in #djs-questions
TypeError [ColorConvert]: Unable to convert "16705372" to a number
Example function that produces this error:
return interaction.reply({
embeds: [new EmbedBuilder()
.setColor(Colors.Red)
.setDescription(`message`)]
});
return interaction.reply({
embeds: [new EmbedBuilder()
.setColor(Colors.Red)
.setDescription(`message`)]
});
16 replies
DIAdiscord.js - Imagine an app
Created by Stew on 10/8/2022 in #djs-questions
ContextMenuCommandBuilder.setDMPermission does nothing
this worked
7 replies