Mozzy
Mozzy
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Mozzy on 2/10/2024 in #djs-questions
Issues with discord.js errors in Bun
No description
23 replies
DIAdiscord.js - Imagine an app
Created by Mozzy on 7/29/2022 in #djs-questions
(known issue on v14.1.0) messageLink is not a function
Trying the "new" Message.url leads to getting this error.
TypeError: messageLink is not a function
at Message.get url [as url] (...\node_modules\discord.js\src\structures\Message.js:443:29)
TypeError: messageLink is not a function
at Message.get url [as url] (...\node_modules\discord.js\src\structures\Message.js:443:29)
It's thrown from https://github.com/discordjs/discord.js/blob/main/packages/discord.js/src/structures/Message.js#L443. Does this just mean that @discordjs/builders hasn't been updated yet? discord.js v14.1.0 Node v16.13.1
9 replies
DIAdiscord.js - Imagine an app
Created by Mozzy on 7/18/2022 in #djs-questions
Change in ActionRow stuff
Feeling a bit stupid, what change in v14 is related to this being needed? row is an ActionRowBuilder, not a received row.
- const content = { components: [row.setComponents(row.components.filter(x => !x.customId))] };
+ const content = { components: [row.setComponents(row.components.filter(x => !x.data.custom_id))] };
- const content = { components: [row.setComponents(row.components.filter(x => !x.customId))] };
+ const content = { components: [row.setComponents(row.components.filter(x => !x.data.custom_id))] };
42 replies