technyk
technyk
DIdiscord.js - Imagine ❄
Created by technyk on 11/11/2024 in #djs-questions
Interaction has already been acknowledged
Thank you very much! I was gonna use the message variable to complete the to-do - get all the users which reacted to that specific message i didnt even notice i put that in there twice, oops Also it was just a quick bot project, not something that I was wishing upon expanding/maintaining so I just skipped past the command handler thingy
18 replies
DIdiscord.js - Imagine ❄
Created by technyk on 11/11/2024 in #djs-questions
Interaction has already been acknowledged
@treble/luna not sure if im doing it quite right, but i followed the docs you sent and made this up
client.on("interactionCreate", (interaction) => {
if (!interaction.isCommand()) return;

const { commandName, options } = interaction;
if (commandName === "rolereactors") {
const arg = options.getString("messageid");

const message = interaction.channel.messages.fetch(arg);
interaction.channel.messages.fetch(arg).then(() => {
interaction.reply(interaction.channel.toString()); // TODO: Get all reactors on a message
})
.catch(error => {
interaction.reply("Message not found..\n Make sure you are in the same channel as the message");
});
}
});
client.on("interactionCreate", (interaction) => {
if (!interaction.isCommand()) return;

const { commandName, options } = interaction;
if (commandName === "rolereactors") {
const arg = options.getString("messageid");

const message = interaction.channel.messages.fetch(arg);
interaction.channel.messages.fetch(arg).then(() => {
interaction.reply(interaction.channel.toString()); // TODO: Get all reactors on a message
})
.catch(error => {
interaction.reply("Message not found..\n Make sure you are in the same channel as the message");
});
}
});
now it throws DiscordAPIError[10008]: Unknown Message
18 replies
DIdiscord.js - Imagine ❄
Created by technyk on 11/11/2024 in #djs-questions
Interaction has already been acknowledged
mind showing me how to do that? I'm not really experienced in js as I've thought
18 replies
DIdiscord.js - Imagine ❄
Created by technyk on 11/11/2024 in #djs-questions
Interaction has already been acknowledged
Thank you in advance, will give feedback right when I get back to my pc :OKAY:
18 replies
DIdiscord.js - Imagine ❄
Created by technyk on 11/11/2024 in #djs-questions
Interaction has already been acknowledged
unfortunately when I do that it the discord api just throws back this and the bot crashes
DiscordAPIError[10008]: Unknown Message
DiscordAPIError[10008]: Unknown Message
18 replies
DIdiscord.js - Imagine ❄
Created by technyk on 11/11/2024 in #djs-questions
Interaction has already been acknowledged
oh? how would i proceed with stopping the code at that point then?
18 replies
audio ids (kill sound)
nor can you use audios uploaded after that date unless they were uploaded by ROBLOX.
then this message isn't truthful
14 replies
audio ids (kill sound)
how come that people still use racist audios in radio games tho? Did roblox upload those.. ?
14 replies