@mateie/discord-logs
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

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
});

/@mateie/discord-logs/

    Package Sidebar

    Install

    npm i @mateie/discord-logs

    Weekly Downloads

    6

    Version

    2.3.0

    License

    ISC

    Unpacked Size

    61.9 kB

    Total Files

    24

    Last publish

    Collaborators

    • mateie