discord-guild-logger
Advanced tools
Comparing version 1.2.9 to 1.3.0
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8470
135