From a1c0c12c651cb0ccba57389cf91ff1a22420234c Mon Sep 17 00:00:00 2001 From: Kevinking500 Date: Sun, 6 Sep 2026 20:02:35 +0200 Subject: [PATCH 1/2] Quick change of AI blob to make a PR --- modules/ping-protection/module.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ping-protection/module.json b/modules/ping-protection/module.json index 028391be..3b197e02 100644 --- a/modules/ping-protection/module.json +++ b/modules/ping-protection/module.json @@ -27,7 +27,7 @@ "AutoModerationExecution" ], "intentReasons": { - "GuildMembers": "Enumerates the holders of protected roles to detect unwanted mentions.", + "GuildMembers": "Checks members to see if they are protected from pings and if they are allowed to ping such users.", "MessageContent": "Scans message content and mentions to catch pings of protected roles and users." } } From f8a12d1737850c639a10171e0037cce893c3daef Mon Sep 17 00:00:00 2001 From: Kevinking500 Date: Sun, 6 Sep 2026 22:05:44 +0200 Subject: [PATCH 2/2] Added user ping preferences model for the last feature in the changelogs list --- .../models/UserPingPreference.js | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 modules/ping-protection/models/UserPingPreference.js diff --git a/modules/ping-protection/models/UserPingPreference.js b/modules/ping-protection/models/UserPingPreference.js new file mode 100644 index 00000000..55eda178 --- /dev/null +++ b/modules/ping-protection/models/UserPingPreference.js @@ -0,0 +1,30 @@ +const { + DataTypes, + Model +} = require('sequelize'); + +module.exports = class PingProtectionUserPingPreference extends Model { + static init(sequelize) { + return super.init({ + userId: { + type: DataTypes.STRING, + allowNull: false, + unique: true + }, + disabledUntil: { + type: DataTypes.DATE, + allowNull: true, + defaultValue: null + } + }, { + tableName: 'ping_protection_user_preferences', + timestamps: true, + sequelize + }); + } +}; + +module.exports.config = { + name: 'UserPingPreference', + module: 'ping-protection' +}; \ No newline at end of file