Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Commit

Permalink
Update parsing error for slowmode
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Ray committed Oct 17, 2018
1 parent 3e81e45 commit 528d00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/slowmode.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exports.run = async (client, message, args) => {
message.delete();
slowmode(0, '***Slowmode has been disabled in this channel.***');
} else if (isNaN(args[0]) || parseInt(args[0]) > 120 || parseInt(args[0]) < 1) {
message.channel.send('**Error:** Please use a number between 1 and 120');
msg.edit('**Error:** Please use a number between 1 and 120');
} else {
message.delete();
slowmode(args[0], `***Slowmode is enabled in this channel for ${args[0]} seconds.***`);
Expand Down

0 comments on commit 528d00f

Please sign in to comment.