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

fix(Message#deletable): add check for deletable message types #9168

Merged

Conversation

Syjalo
Copy link
Contributor

@Syjalo Syjalo commented Feb 24, 2023

Please describe the changes this PR makes and why it should be merged:
This PR adds check for deletable message types in Message#deletable
discord/discord-api-docs#5148

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating
  • This PR changes the library's interface (methods or parameters added)

@vercel
Copy link

vercel bot commented Feb 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
discord-js ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 25, 2023 at 2:39PM (UTC)
discord-js-guide ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 25, 2023 at 2:39PM (UTC)

@jaw0r3k
Copy link
Contributor

jaw0r3k commented Feb 24, 2023

You also need to check that bot has manage messages perm when message is an automod action

@Jiralite
Copy link
Member

Isn't that already done?

@jaw0r3k
Copy link
Contributor

jaw0r3k commented Feb 24, 2023

Its not, we are checking if message author is bot
or it has the perms

@Syjalo Syjalo deleted the fix/add-check-for-deletable-message-types branch February 25, 2023 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

6 participants