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

feat: Safety alerts channel and mention raid protection #9073

Merged
merged 6 commits into from May 7, 2023

Conversation

jaw0r3k
Copy link
Contributor

@jaw0r3k jaw0r3k commented Jan 16, 2023

Please describe the changes this PR makes and why it should be merged:
Backports:

🤖 Generated by Copilot at 40244ae

Summary

🛡️🗣️🚨

This pull request adds two new features to the discord.js library: mention raid protection and safety alerts channel. Mention raid protection allows the user to create and edit rules that automatically moderate spam attacks that mention many users or roles in a guild. Safety alerts channel allows the user to access and edit the channel where Discord sends notifications about potential threats to the guild's security. The pull request modifies the AutoModerationRuleManager, AutoModerationRule, and Guild classes, and the GuildEditData type, to implement these features.

AutoModeration
Protects from mention raids
A new feature blooms

Walkthrough

Status and versioning classification:

@vercel
Copy link

vercel bot commented Jan 16, 2023

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

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
discord-js ⬜️ Ignored (Inspect) May 7, 2023 0:02am
discord-js-guide ⬜️ Ignored (Inspect) May 7, 2023 0:02am

@vercel
Copy link

vercel bot commented Jan 16, 2023

@jaw0r3k is attempting to deploy a commit to the discordjs Team on Vercel.

A member of the Team first needs to authorize it.

@Jiralite Jiralite changed the title feat: v13 safety alerts channel and mention raid protection feat: Safety alerts channel and mention raid protection Apr 29, 2023
src/structures/Guild.js Outdated Show resolved Hide resolved
typings/index.d.ts Outdated Show resolved Hide resolved
typings/index.d.ts Outdated Show resolved Hide resolved
Copy link
Member

@Jiralite Jiralite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guild#features's documentation needs updating.

jaw0r3k and others added 2 commits May 7, 2023 11:41
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
@Jiralite Jiralite removed the blocked label May 7, 2023
@kodiakhq kodiakhq bot merged commit 5057f04 into discordjs:v13 May 7, 2023
9 checks passed
@jaw0r3k jaw0r3k deleted the v13-alerts-antyraids branch May 7, 2023 12:56
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