
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@magicyan/discord-events
Advanced tools
Install with
npm install @magicyan/discord-events
pnpm install @magicyan/discord-events
yarn add @magicyan/discord-events
bun install @magicyan/discord-events
This lib adds more discord.js specific events
Create your bot client normally and pass it to the initDiscordEvents function, so that events can be registered
import { Client } from "discord.js";
import { initDiscordEvents } from "@magicyan/discord-events";
const client = new Client({
intents: [/* add your intents ... */]
// set your client options ...
});
initDiscordEvents(client);
You can create a listener for the event in the same way you create it for standard discord.js events
client.on("guildMemberConnect", (member, channel) => {
console.log(member.displayName, "joined the" channel.name);
})
See below the list of all events
| Event | Parameters | Description |
|---|---|---|
| webhookMessageCreate | message, webhook | Emitted when a webhook message is created. |
| guildMemberConnect | member, voiceChannel | Emitted when a member connect to voice channel in a guild. |
| guildMemberDisconnect | member, voiceChannel | Emitted when a member disconnect from voice channel in a guild. |
| guildMemberMoved | member, executor, oldVoiceChannel, newVoiceChannel | Emitted when a member is moved from one voice channel to another. |
| guildMemberTimeoutAdd | member, executor, expireAt, reason | Emitted when a member gets a timeout |
| guildMemberTimeoutAdd | member, executor | Emitted when a member has a timeout removed |
| userKick | user, executor, reason, guild | Emitted when a user is kicked from the guild |
| userBanAdd | user, executor, reason, guild | Emitted when a user is banned from the guild |
| userBanRemove | user, executor, reason, guild | Emitted when a user's ban is removed |
| extendedRoleCreate | role, executor | Emitted when a role is created |
| extendedRoleUpdate | role, changes, executor | Emitted when a role is updated |
| extendedRoleDelete | deletedRole, executor | Emitted when a role is deleted |
FAQs
Extended events of discord.js
We found that @magicyan/discord-events demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.