discord.js-ghost-ping
v3.0.0
Published
Detect Ghost Pings inside of discord.js v14!
Downloads
49
Readme
❯ Getting Started
❯ About
discord.js-ghost-ping
is a Node.js module that allows you to detect ghost pings inside of discord.js v14!
This package comes from the developer of verified bots: @Coin Flipper#1767 - 650k users and @autoMod#8328 - 55k users
What does the package do?
- [x] Detect Ghost Pings
- [x] Send Messages As the Bot
Help
If you don't understand something in the documentation
, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our Discord Server
.
❯ Installation
Install with npm:
$ npm install discord.js-ghost-ping
Install with yarn:
$ yarn add discord.js-ghost-ping
❯ Example Usage
This is a working example.
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages] });
const GhostPing = require('discord.js-ghost-ping');
client.on('messageDelete', (...args) => {
const res = GhostPing('messageDelete', ...args);
console.log(res?.mentions || res);
});
client.on('messageUpdate', (...args) => {
const res = GhostPing('messageUpdate', ...args);
console.log(res?.mentions || res);
});
client.login(process.env['MyToken']);