Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DiscordAPIError: 404: Not Found #7770

Closed
Shelly7w7 opened this issue Apr 11, 2022 · 4 comments · Fixed by #7771
Closed

DiscordAPIError: 404: Not Found #7770

Shelly7w7 opened this issue Apr 11, 2022 · 4 comments · Fixed by #7771

Comments

@Shelly7w7
Copy link

Which package is this bug report for?

discord.js

Issue description

I am trying to delete a channel using delete(). But when I do, I receive the 404 error.

Code sample

const { Client, Intents } = require('discord.js');
const token = "token";

const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });

client.once('ready', () => {
    console.log('Ready!');
});

client.on('messageCreate', message => {
    if (message.content === 'ping') {
        message.channel.delete();
    }
});

client.login(token);

Package version

discord.js@13.6.0 (git+ssh://git@github.com/discordjs/discord.js.git#e1cdcfa9a6baed1d373cc5474630d32ce38db31e) (v13 Branch aka 13.7.0)

Node.js version

v16.10.0

Operating system

Windows 11

Priority this issue should have

Medium (should be fixed soon)

Which partials do you have configured?

Channel, Message

Which gateway intents are you subscribing to?

Guilds, GuildMessages

I have tested this issue on a development release

No response

@monbrey

This comment was marked as outdated.

@Shelly7w7
Copy link
Author

I came from the discord server. This is indeed an issue. Happening on v13.7.0, hence why I am reporting it. For clarification, this works fine on v13.6.0

@Amongsterdevil
Copy link

Have gone a treated while you were trying to demonstrate on single lane put it in go with the flow

@SpaceEEC
Copy link
Member

Since #7771 got merged, this issue has been resolved.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants