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

+2 -3
View File
@@ -5,8 +5,8 @@ const { time } = require("discord.js");
module.exports = {
name: 'ban',
description: `ban a user from the current server`,
aliases: ['banish'],
usage: 'ban <user> [reason] [duration]',
aliases: ['b'],
usage: 'ban <user> [reason]',
async execute(client, message, args) {
if (!message.member.permissions.has('BanMembers')) {
@@ -47,7 +47,6 @@ module.exports = {
}
const reason = args.slice(1).join(' ') || 'no reason provided (twitter)';
const duration = args[2] ? parseInt(args[2]) : null;
try {
await message.guild.members.ban(user, { reason });