Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.