Skip to content

Commit

Permalink
Create slowmode.js
Browse files Browse the repository at this point in the history
  • Loading branch information
CustomAmelia committed Sep 15, 2020
1 parent d205e95 commit 865fa87
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions commands/slowmode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const Discord = require('discord.js');

module.exports = {
name: 'slowmode',
description: "lolok",
execute(message, client, args){
if (message.author.id === '498097065264676864' || message.author.id === '266330174948114434' || message.author.id === '400725779006357505' || message.author.id === '492816088724144138') {

if (!args) return;
if (!args[0]) return;
if (args[0].length > 3) {
message.channel.send('You cannot make a channels slowmode more than 5 minutes.')
}

if (args[0].length === 3) {
message.channel.setRateLimitPerUser(args[0])
}

if (args[0].length > 3) {
message.channel.setRateLimitPerUser(args[0])
}
}
}
}

0 comments on commit 865fa87

Please sign in to comment.