discord-modlogs

A package to make moderation easier! Uses discord.js v13

Usage no npm install needed!

<script type="module">
  import discordModlogs from 'https://cdn.skypack.dev/discord-modlogs';
</script>

README

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:

  1. channelCreate: Emitted whenever a channel is created.
  2. channelDelete: Emitted whenever a channel is deleted.
  3. channelPinsUpdate: Emitted whenever the pins of a channel are updated.
  4. channelUpdate: Emitted whenever a channel is updated - e.g. name change, topic change.
  5. emojiCreate: Emitted whenever a custom emoji is created in a guild.
  6. emojiDelete: Emitted whenever a custom guild emoji is deleted.
  7. emojiUpdate: Emitted whenever a custom guild emoji is updated.
  8. guildBanAdd: Emitted whenever a member is banned from a guild.
  9. guildBanRemove: Emitted whenever a member is unbanned from a guild.
  10. guildMemberAdd: Emitted whenever a user joins a guild.
  11. guildMemberRemove: Emitted whenever a member leaves a guild, or is kicked.
  12. guildMembersChunk: Emitted whenever a chunk of guild members is received (all members come from the same guild).
  13. messageUpdate: Emiited whenever a message was updated.
  14. inviteCreate: Emitted whenever an invite is created.
  15. 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.