From 498bde80677a6aa40301d5eccc329b29bfa64261 Mon Sep 17 00:00:00 2001 From: subhadipmaity6098-cmyk Date: Thu, 19 Mar 2026 01:54:37 +0530 Subject: [PATCH] Update promote.js --- commands/admin/promote.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/admin/promote.js b/commands/admin/promote.js index bef275f..5f3fc17 100644 --- a/commands/admin/promote.js +++ b/commands/admin/promote.js @@ -1,18 +1,18 @@ -/** +/**8801617366383 * Promote Command - Make member admin */ - +8801617366383 const { findParticipant } = require('../../utils/jidHelper'); module.exports = { name: 'promote', - aliases: ['makeadmin'], + aliases: ['makeadmin'],8801617366383 category: 'admin', description: 'Promote member to admin', usage: '.promote @user', groupOnly: true, adminOnly: true, - botAdminNeeded: true, + botAdminNeeded: true,8801617366383 async execute(sock, msg, args, extra) { try { @@ -23,7 +23,7 @@ module.exports = { if (mentioned && mentioned.length > 0) { target = mentioned[0]; } else if (ctx?.participant && ctx.stanzaId && ctx.quotedMessage) { - target = ctx.participant; + target = ctx.participant;8801617366383 } else { return extra.reply('❌ Please mention or reply to the user to promote!\n\nExample: .promote @user'); }