Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

256
Views
DiscordAPIError: 404: Not Found, Reaction roles

v13, I'm trying to do Reaction roles, but it gives me this error:

throw new DiscordAPIError(data, res.status, request);

DiscordAPIError: 404: Not Found at RequestHandler.execute (C:\Users\DELL\OneDrive\Desktop\Discord Bot\node_modules\discord.js\src\rest\RequestHandler.js:298:13) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async RequestHandler.push (C:\Users\DELL\OneDrive\Desktop\Discord Bot\node_modules\discord.js\src\rest\RequestHandler.js:50:14) at async ChannelManager.fetch (C:\Users\DELL\OneDrive\Desktop\Discord

Bot\node_modules\discord.js\src\managers\ChannelManager.js:114:18) at async module.exports (C:\Users\DELL\OneDrive\Desktop\Discord Bot\utils\EditMessage.js:10:21) {

EditMessage.js file code:

const addReactions = (message, reactions) => {
    message.react(reactions[0])
    reactions.shift()
    if(reactions.length > 0) {
        setTimeout(() => addReactions(message, reactions), 500)
    }
}

module.exports = async (client, id, text, reactions = []) => {
    const channel = await client.channels.fetch(id) // Send Message In Channel ID Provided

    channel.messages.fetch().then((messages) => {
        if(messages.size === 0) {
            // Send Message In Channel ID Provided
            // Send Text
            message.channel.send(text).then((message) => {
                // Add Reaction
                addReactions(message, reactions)
            })
        } else {
            // Edit Message After Sent
            for(const message of messages) {
                //Edit Text
                message[1].edit(text)
                // Edit Reaction
                addReactions(message[1], reactions)
            }
        }
    })
}

setup.js file code:

const { MessageEmbed } = require('discord.js')
const EditMessage = require('../../utils/EditMessage')

module.exports = (client) => {
    EditMessage(client, '798996288258703382', new MessageEmbed()
    .setTitle('Role Menu: Editing Program')
    .setColor('#000000')
    .setDescription(`React to give yourself a role.
1️⃣ After Effects
2️⃣ Video Star
3️⃣ Alight Motion
4️⃣ Sony Vegas
    `)
    .setFooter('Reaction Roles')
    , ['1️⃣', '2️⃣', '3️⃣', '4️⃣']
    )
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!