Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require("discord.js");
- module.exports.run = async (bot, message, args) => {
- if(!message.member.hasPermission(["MANAGE_MESSAGES" , "ADMINISTRATOR"])) return message.channel.send("You cannot use this command!")
- let argsresult;
- let mChannel = message.mentions.channels.first()
- message.delete()
- if(mChannel) {
- argsresult = args.slice(1).join(" ")
- mChannel.send(argsresult)
- } else {
- argsresult = args.join(" ")
- message.channel.send(argsresult)
- }
- }
- module.exports.config = {
- name: "say",
- aliases: ["Sends a message that was inputted to a channel"],
- usage: "!say",
- description: "The bot says what you want it to.",
- accesableby: "Moderator",
- notworking: "Working Or not Working"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement