Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

258
Views
js no ve el segundo número

Si trato de aprobar el error 11, aprueba el error 1. Ayude a resolver este problema bot, no percibe números que constan de dos dígitos en absoluto

 client.on('message', async (message, member, channel) => { if (!message.content.startsWith(prefix) || message.author.bot) return; var args = message.content.slice(prefix.length).split(/ +/); const command = args.shift().toLowerCase(); args = args.join(" "); let perms = message.member.permissions; if (command === 'accept') { const user = await message.guild.members.cache.get(message.author.id) if (!user.roles.cache.get(ApprovoredRoleID)) return message.reply('Доступно только охотникам за багами') if (!args[0]) return message.reply('Укажите Bug-ID') var SelectBug = await BugScheme.findOne({ id: args[0] }); if (!SelectBug) return message.reply('Я не могу найти идентификатор отчета.') if (SelectBug.reportStatus != 'none') return message.reply('Этот отчет уже перемещен.') var bug = client.channels.cache.get(BugsChannel) bug.messages.fetch({around: SelectBug.messageid, limit: 1}) .then(msg => { const fetchedMsg = msg.first(); fetchedMsg.edit(`**───────────────────**\n<@${SelectBug.owner}> сообщил\n\n**Название:** ${SelectBug.title}\n**Описание:** ${SelectBug.description}\n\nПроверил ${message.author} <:yes:917708321056768000>\nID отчета: **${SelectBug.id}**`); }); SelectBug.reportStatus = 'accept' SelectBug.save()

mongo

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

Esto se debe a que solo obtiene el primer carácter de la cadena. Elimine args = args.join(" ") y haga esto en su lugar:

 var SelectBug = await BugScheme.findOne({ id: args.join("") })
about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!