diff --git a/cmds/moderation/slowmode.js b/cmds/moderation/slowmode.js new file mode 100644 index 0000000..7abb0ca --- /dev/null +++ b/cmds/moderation/slowmode.js @@ -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))}`) + } +}; \ No newline at end of file