lock, mute, prefix, tempban

This commit is contained in:
yhqe committed 2026-03-22 02:15:16 -05:00
1 parent 27894dac21
commit f637673a4e
18 files changed
+3482 -2658

No files matched your search

+50
View File
@@ -0,0 +1,50 @@
'use strict';
const { time } = require("discord.js");
module.exports = {
name: 'unlockdown',
description: 'unlock the current channel ',
aliases: ['ud', 'unlock'],
usage: 'unlockdown',
async execute(client, message) {
var embed;
if (!message.member?.permissions?.has('ManageChannels')) {
await message.reply({
embeds: [{
color: 0x8aa2b3,
title: '',
description: '<:no:1481811955592466492> you do not have permissions to run this command!',
footer: {
text: `twitter @ ${message.guild.name}`,
icon_url: client.user.displayAvatarURL(),
},
timestamp: new Date(),
}]
});
return;
}
const channel = message.channel;
await channel.permissionOverwrites.edit(
message.guild.roles.everyone,
{ SendMessages: null }
);
embed = {
color: 0x8aa2b3,
title: '',
description: `<:check:1481811973447356496> ${channel} is now unlocked!`,
footer: {
text: `twitter @ ${message.guild.name}`,
icon_url: client.user.displayAvatarURL(),
},
timestamp: new Date(),
};
await message.reply({ content: null, embeds: [embed] });
},
};