mirror of
https://github.com/danbulant/Shasha
synced 2026-06-14 11:51:18 +00:00
28 lines
No EOL
834 B
JavaScript
28 lines
No EOL
834 B
JavaScript
'use strict';
|
|
|
|
const commando = require("@iceprod/discord.js-commando");
|
|
const { Message } = require("discord.js");
|
|
const { Interval } = require("luxon");
|
|
const { trySend } = require("../../resources/functions");
|
|
const { intervalToDuration } = require("./src/duration");
|
|
|
|
module.exports = class slowmode extends commando.Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: "slowmode",
|
|
memberName: "slowmode",
|
|
group: "moderation",
|
|
description: "Set slowmode of a channel.",
|
|
guildOnly: true
|
|
});
|
|
}
|
|
/**
|
|
*
|
|
* @param {Message} msg
|
|
* @param {*} arg
|
|
* @returns
|
|
*/
|
|
run(msg, arg) {
|
|
// if (!arg) return trySend(msg.client, msg, `There is ${intervalToDuration(Interval.after(new Date(), msg.channel.slo))}`)
|
|
}
|
|
}; |