JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 886
  • Score
    100M100P100Q101980F
  • License ISC

Add many useful events to your discord.js client!

Package Exports

  • discord-logs
  • discord-logs/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (discord-logs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Discord Logs

downloadsBadge versionBadge

Discord Logs is a powerful package which add many useful events to your Discord.js (v14) client!

const Discord = require('discord.js');
const client = new Discord.Client({
    intents: [
        Discord.GatewayIntentBits.Guilds,
        Discord.GatewayIntentBits.GuildMessages,
        Discord.GatewayIntentBits.MessageContent,
        Discord.GatewayIntentBits.GuildVoiceStates,
        Discord.GatewayIntentBits.GuildPresences,
        Discord.GatewayIntentBits.GuildMembers
    ]
});
const logs = require('discord-logs');
logs(client);

// Access to new events, like guildMemberBoost!
client.on('guildMemberBoost', (member) => {
    console.log(`${member.user.tag} just boosted ${member.guild.name}!`);
});

client.login('YOUR_DISCORD_BOT_TOKEN');

Click here to see the list of all the handled events!

Troubleshooting

You can enable debug to try to know why an event is not working:

const logs = require('discord-logs');
logs(client, {
    debug: true
});