jakub
jakub
DIAdiscord.js - Imagine a bot
Created by Youssef on 7/22/2024 in #djs-questions
Argument of type 'ButtonStyle.Link' is not assignable to parameter of type 'ButtonStyle'
Fine, I have no power here anyway
32 replies
DIAdiscord.js - Imagine a bot
Created by Youssef on 7/22/2024 in #djs-questions
Argument of type 'ButtonStyle.Link' is not assignable to parameter of type 'ButtonStyle'
Phatom deoendencies 💀
32 replies
DIAdiscord.js - Imagine a bot
Created by peachii on 7/8/2024 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'send')
(don't)
33 replies
DIAdiscord.js - Imagine a bot
Created by peachii on 7/8/2024 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'send')
channel?.send({ embeds: [embed] }) ?? (() => {
// else logic
})();
channel?.send({ embeds: [embed] }) ?? (() => {
// else logic
})();
33 replies
DIAdiscord.js - Imagine a bot
Created by taint goblin on 7/8/2024 in #djs-questions
Creating first bot and ran into problem
ok yeah this is the point when you add type: "module" because legacy stuff
10 replies
DIAdiscord.js - Imagine a bot
Created by peachii on 7/8/2024 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'send')
if (channel) { // If channel exists channel.send({ embeds: [embed] }); // Sends the message }
that's just
channel?.send({ embeds: [embed] }); // Sends the message
channel?.send({ embeds: [embed] }); // Sends the message
33 replies
DIAdiscord.js - Imagine a bot
Created by taint goblin on 7/8/2024 in #djs-questions
Creating first bot and ran into problem
import is only available in esm and typescript, you want to use require statements
well, if they're using import, they are using ESM so
10 replies
DIAdiscord.js - Imagine a bot
Created by Agentcobra on 6/2/2024 in #djs-questions
djs-checker
bruh This is the first thing I see going on in here, a NPM scam 💀
28 replies