Announcement

Epic for iOS and Android are live in the App Store and the Android Play Store. We're EpicBrowser on Twitter and on Facebook. Please feel free to also email our Founder directly with issues or questions: alok at hiddenreflex dot com

#1 Epic Privacy Browser - Help & Troubleshooting » Discord bot simple editing its own message gives me error » 2020-10-20 09:13:53

xandercage43
Replies: 0
{module.exports = {
 name: 'hack',

 execute: function(message, args) {
  const user = message.mentions.users.first() || args[0];

  const member = message.guild.member(user);

  if (member) {
   message.channel
    .send('Scrambling Through Database')

    .then((message) => {
     setTimeout(function() {
      message.edit(`Working on hack`);
     }, 4000);
    });

   setTimeout(function() {
    message.edit(`Inserting Trojan File on ?:computer_mouse:`);
   }, 2700);

   setTimeout(function() {
    message.edit(member + ` Leaking there passwords to the russians`);
   }, 1700);

   setTimeout(function() {
    message.edit(`Deleting saved passwords`);
   }, 1700);

   setTimeout(function() {
    message.edit(`Deleted Epic Account`);
   }, 1700);

   setTimeout(function() {
    message.edit(`Sent a screenshot of there browser history to there friends`);
   }, 1700);

   setTimeout(function() {
    message.edit(`Leaking IP Address`);
   }, 1700);

   setTimeout(function() {
    message.edit(`Leaking users gmail account`);
   }, 1700);

   setTimeout(function() {
    message.edit(`Completing hack`);
   }, 3700);

   setTimeout(function() {
    message.edit(`Deleting traces`);
   }, 2000);

   setTimeout(function() {
    message.edit(`Deleting traces...`);
   }, 2000);

   setTimeout(function() {
    message.edit(`Copied User Details`);
   }, 2000);

   setTimeout(function() {
    message.edit(`A successful hack was complete and it was real`);
   }, 3000);
  } else {
   message.channel.send(
    'Who are you even trying to hack? Is it that tough to mention a user?'
   );
  }
 },
};}

so this is a simple !hack @user command and after you use the command the bot just sends a message and keeps editing its message multiple times but I am getting an error for some reason. Here's the error:

{UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot edit a message authored by another user}

Board footer