discord.js-ghost-ping
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published
Verison Downloads npm bundle size

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']);

Readme

Keywords

none

Package Sidebar

Install

npm i discord.js-ghost-ping

Weekly Downloads

21

Version

3.0.0

License

MIT

Unpacked Size

7.37 kB

Total Files

6

Last publish

Collaborators

  • thatsliams