okunamayanad
okunamayanad
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/21/2024 in #djs-questions
Message.startThread fails with: DiscordAPIError[10008]: Unknown Message
thanks for pointing it out
8 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/21/2024 in #djs-questions
Message.startThread fails with: DiscordAPIError[10008]: Unknown Message
ohhh so sorry, didn't notice that
8 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/21/2024 in #djs-questions
Message.startThread fails with: DiscordAPIError[10008]: Unknown Message
node -v
v20.15.0
v20.15.0
8 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/21/2024 in #djs-questions
Message.startThread fails with: DiscordAPIError[10008]: Unknown Message
npm list discord.js
[email protected] /home/baran-mordo-an/vote
└── [email protected] -> ./node_modules/.pnpm/[email protected]/node_modules/discord.js
[email protected] /home/baran-mordo-an/vote
└── [email protected] -> ./node_modules/.pnpm/[email protected]/node_modules/discord.js
8 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/19/2024 in #djs-questions
Message create event is being triggered on thread creation
if (message.type !== MessageType.Default) return;
if (message.type !== MessageType.Default) return;
fixed the issue! thanks guys
4 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/18/2024 in #djs-questions
Get message by ID and then update it
tysm @Mark
30 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/18/2024 in #djs-questions
Get message by ID and then update it
even though my IDE complains about stuff, it works fine!
30 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/18/2024 in #djs-questions
Get message by ID and then update it
doesn't look like a one tho, because its correct when I check the docs
30 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/18/2024 in #djs-questions
Get message by ID and then update it
anyways i'll try it anyways and see if thats an IDE issue
30 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/18/2024 in #djs-questions
Get message by ID and then update it
is not assignable to parameter type string | MessagePayload | MessageEditOptions
30 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/18/2024 in #djs-questions
Get message by ID and then update it
my IDEs complaining about the types mismatching though and when I checked the types I couldn't figure out how would I edit an embed with files and components
30 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/18/2024 in #djs-questions
Get message by ID and then update it
so I'm trying to edit an embed and replace that with another
await interaction.channel.messages.edit(messageId, {
components: [ActionRowBuilder<AnyComponentBuilder>],
files: [AttachmentBuilder],
embeds: [EmbedBuilder]
});
await interaction.channel.messages.edit(messageId, {
components: [ActionRowBuilder<AnyComponentBuilder>],
files: [AttachmentBuilder],
embeds: [EmbedBuilder]
});
so this should work right?
30 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/18/2024 in #djs-questions
Get message by ID and then update it
let me try
30 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/18/2024 in #djs-questions
Get message by ID and then update it
or does that work with a message id too?
30 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/18/2024 in #djs-questions
Get message by ID and then update it
what? dont i still need the message to put it to first argument of edit?
30 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/18/2024 in #djs-questions
Get message by ID and then update it
await interaction.channel.messages.fetch(messageId).update(toSend);
await interaction.channel.messages.fetch(messageId).update(toSend);
30 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/18/2024 in #djs-questions
Get message by ID and then update it
oh I used await sorry accidentally cut that off
30 replies
DIAdiscord.js - Imagine an app
Created by okunamayanad on 8/18/2024 in #djs-questions
Get message by ID and then update it
npm list discord.js
[email protected] /home/baran-mordo-an/vote
└── [email protected] -> ./node_modules/.pnpm/[email protected]/node_modules/discord.js
[email protected] /home/baran-mordo-an/vote
└── [email protected] -> ./node_modules/.pnpm/[email protected]/node_modules/discord.js
node -v
v20.15.0
v20.15.0
30 replies