mirror of
https://github.com/danbulant/Shasha
synced 2026-06-19 22:31:31 +00:00
initial commit
This commit is contained in:
parent
d410a594e9
commit
9abe0224ac
1 changed files with 28 additions and 0 deletions
28
cmds/moderation/slowmode.js
Normal file
28
cmds/moderation/slowmode.js
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
'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))}`)
|
||||
}
|
||||
};
|
||||
Loading…
Reference in a new issue