Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Update packages, create .eslint file and enforce code style #128

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

phamleduy04
Copy link

@phamleduy04 phamleduy04 commented Oct 16, 2020

I'm not checking because I'm just enforce code style. But I have updated packages, u can test it before merging it.

}

async run(msg) {
if (msg.author.bot) return;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont really need this because default discord.js commando auto ignore bot messages

@@ -38,7 +37,7 @@ module.exports = class PurgeCommand extends Command {
message
.reply(`🗑️ Sucessfully Deleted ${args.purgecount} messages.`)
.then(async e => {
await e.delete(2000);
await e.delete({ timeout: 2000 });
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in discord.js v12 u need to put the time to an object. Refer this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant