MCPcopy Index your code
hub / github.com/Androz2091/discord-logs

github.com/Androz2091/discord-logs @v2.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.2.1 ↗ · + Follow
11 symbols 32 edges 14 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
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
});

Core symbols most depended-on inside this repo

handleGuildUpdateEvent
called by 1
handlers/guildUpdate.ts
handleUserUpdateEvent
called by 1
handlers/userUpdate.ts
handleChannelUpdateEvent
called by 1
handlers/guildChannel.ts
handleGuildMemberUpdateEvent
called by 1
handlers/guildMemberUpdate.ts
handleRoleUpdateEvent
called by 1
handlers/roleUpdate.ts
handleMessageUpdateEvent
called by 1
handlers/messageUpdate.ts
handlePresenceUpdateEvent
called by 1
handlers/presenceUpdate.ts
handleVoiceStateUpdateEvent
called by 1
handlers/voiceStateUpdate.ts

Shape

Function 11

Languages

TypeScript100%

Modules by API surface

scripts/generate-test.js1 symbols
scripts/generate-docs.js1 symbols
handlers/voiceStateUpdate.ts1 symbols
handlers/userUpdate.ts1 symbols
handlers/threadUpdate.ts1 symbols
handlers/roleUpdate.ts1 symbols
handlers/presenceUpdate.ts1 symbols
handlers/messageUpdate.ts1 symbols
handlers/guildUpdate.ts1 symbols
handlers/guildMemberUpdate.ts1 symbols
handlers/guildChannel.ts1 symbols

For agents

$ claude mcp add discord-logs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page