Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@elara-services/automod-dms
Advanced tools
Sends users or members in roles DM notifications when Discord built-in AutoMod gets triggered
This package will DM (Direct Message) the members in the notify.role or notifications.role for the action on that server or user IDs in the notify.users or notifications.users arrays.
Block Message
option enabled in the Discord built-in AutoMod filter!This package supports both discord.js v13 and v14
const { AutoModDMNotifications } = require("@elara-services/automod-dms");
const automod = new AutoModDMNotifications({
client, // Your discord.js Client
actions: [ // An array of actions for the bot to watch for.
{
enabled: true, // If this action should be enabled
guild_id: "12345678", // The server ID for this action only.
ignoreRules: [ // To ignore a certain AutoMod rule from being sent to notify/notification users
"2133456",
],
fetchAllMembers: true, // If you want the package to automatically fetch all members for the provided server ID (REQUIRES: 'GUILD_MEMBERS' intent)
notify: { // People in this option will get the user's message content or what got filtered.
enabled: true, // If the notify role/users should be notified
selectmenu: true, // If the "Moderation Actions" select menu should be sent in DMs to the notify.role members or notify.users people
role: "2134567", // The notify role ID, anyone in this role will get DM Notify Alerts
users: [ // The user IDs for anyone you want to get the DM Notify Alerts
"21345678"
]
},
notifications: { // People in this option will not get the user's message content or what got filtered.
enabled: true, // If the notifications role/users should be notified
selectmenu: true, // If the "Moderation Actions" select menu should be sent in DMs to the notifications.role members or notifications.users people
role: "2134567", // The notifications role ID, anyone in this role will get DM Notifications Alerts
users: [ // The user IDs for anyone you want to get the DM Notifications Alerts
"21345678"
]
},
}
]
})
client.once("ready", () => {
automod.run();
// This will start the automod process.
})
FAQs
Sends users or members in roles DM notifications when Discord built-in AutoMod gets triggered
We found that @elara-services/automod-dms demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.