Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

discord-guild-logger

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-guild-logger - npm Package Compare versions

Comparing version 1.2.9 to 1.3.0

8

index.js

@@ -5,8 +5,10 @@ const Discord = require('discord.js');

* @param {Discord.Client} client Client
* @param {String} guild Guild you want to log
* @param {String} logChannel Logs channel
*/
async function init(client, logChannel, events = {}) {
async function init({ client, logChannel, events = {} }) {
if (!client) throw new Error('[discord-guild-logger] -> Invalid Client.')
if (!logChannel) throw new Error('[discord-guild-logger] -> Invalid Log Channel ID.')

@@ -26,4 +28,2 @@ if (!events || !events.messageEdit || !events.messageDelete || !events.roleCreate || !events.roleDelete || !events.channelDelete || !events.channelCreate || !events.guildBanAdd) {

if (events.messageEdit == true) {

@@ -181,2 +181,2 @@ client.on('messageUpdate', async (oldMessage, newMessage) => {

module.exports.init = init;
module.exports.init = init;
{
"name": "discord-guild-logger",
"version": "1.2.9",
"version": "1.3.0",
"description": "Module to log all the actions on your server",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc