Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require("discord.js");
- const colours = require("../colours.json");
- module.exports.run = async (bot, message, args) => {
- if(!bot.lockit) bot.lockit = [];
- let validUnlocks = ["release", "unlock"]
- if(validUnlocks.includes()) {
- message.channel.overwritePermissions(message.guild.id, {
- SEND_MESSAGES: null
- }).then(() => {
- message.channel.send("Le salon est réouvert !")
- })
- } else {
- message.channel.overwritePermissions(message.guild.id, {
- SEND_MESSAGES: false
- }).then(() => {
- message.channel.send("Le salon est fermer !")
- })
- }
- }
- module.exports.help = {
- name: "lockchannel"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement