1.0.1 • Published 3 years ago
discord-modlogs v1.0.1
Discord-Modlogs
A package to make moderation easier! Uses discord.js v13
Installation
Use the package manager npm to install discord-modlogs.
npm i discord-modlogs
Usage
const logs = require("discord-modlogs");
//guildBanAdd event
client.on("guildBanAdd", async (ban) => {
logs.guildBanAdd(client, ban, {
chid: "your channel id here", //required
});
});
Events Supported
Currently we support the following events:
- channelCreate: Emitted whenever a channel is created.
- channelDelete: Emitted whenever a channel is deleted.
- channelPinsUpdate: Emitted whenever the pins of a channel are updated.
- channelUpdate: Emitted whenever a channel is updated - e.g. name change, topic change.
- emojiCreate: Emitted whenever a custom emoji is created in a guild.
- emojiDelete: Emitted whenever a custom guild emoji is deleted.
- emojiUpdate: Emitted whenever a custom guild emoji is updated.
- guildBanAdd: Emitted whenever a member is banned from a guild.
- guildBanRemove: Emitted whenever a member is unbanned from a guild.
- guildMemberAdd: Emitted whenever a user joins a guild.
- guildMemberRemove: Emitted whenever a member leaves a guild, or is kicked.
- guildMembersChunk: Emitted whenever a chunk of guild members is received (all members come from the same guild).
- messageUpdate: Emiited whenever a message was updated.
- inviteCreate: Emitted whenever an invite is created.
- inviteDelete: Emitted whenever an invite is deleted.
Note
Example bot can be found here- Example Bot
Support Server
Nope but you can join my youtube server for help: Join here
My youtube channel if you want to learn discord.js: Sub here
License
discord-modlogs npm licensed under the terms of Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International ("CC-BY-NC-SA-4.0"). Commercial use is not allowed under this license. This includes any kind of revenue made with or based upon the software, even donations.
The CC-BY-NC-SA-4.0 allows you to:
- Share -- copy and redistribute the material in any medium or format
- Adapt -- remix, transform, and build upon the material
Under the following terms:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- NonCommercial — You may not use the material for commercial purposes.
- ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
More information can be found here.