Git Product home page Git Product logo

Comments (8)

Androz2091 avatar Androz2091 commented on August 14, 2024 1

It's fixed. I tested to load your backup and it works perfectly. Upgrading discord-backup to v2.1.14 should fix it for you.

from discord-backup.

MrD4rio avatar MrD4rio commented on August 14, 2024

So, I managed to make it work, it makes the backup and sends me the ID via dm, I've tried loading the backup on another server and it backups almost everything (channels, roles, server name and icon) but some categories' channels don't get restored, it just restores the category but no channels in them. Also, when I try to use the b!info or b!fetch commands they don't get me any response

EDIT: went to look into backup's json files, and the channels are actually in there, but the backup doesn't restore them, it just restores the category. I have 4 categories, the first one gets restored with all the channels under that one, the other 3 get restored without any channel under them even if in the json backup files there's every channel under each category

from discord-backup.

Androz2091 avatar Androz2091 commented on August 14, 2024

Hello,
Here are some questions before helping you:

  • Do you have any error (when you load the backup and when you run the b!infos command)?
  • What is your Discord.js version (npm list) and your Nodejs version (node -v)?
  • Can you send me the json file that doesn't work so I can try it on my own computer?

from discord-backup.

MrD4rio avatar MrD4rio commented on August 14, 2024

Hi @Androz2091 , first of all thanks for your work and help,

  • I'm fairly new to this world, it's the first bot I try to use and self-host, I suppose I have to run it via node index.js to make the bot console start, in fact I get the "I'm ready" message, when I use the b!info or b!fetch commands, nothing happens on console, no errors / warnings, literally nothing. When I load the backup, I get this (consider that the backup still gets actually loaded):
(node:5911) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body
bitrate: int value should be less than or equal to 96000.
    at RequestHandler.execute (/root/bot/node_modules/discord.js/src/rest/RequestHandler.js:170:25)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:5911) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:5911) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  • My Discord.js version is: 12.1.1 and Nodejs version is: 12.16.1

  • I tried making multiple backups and every of them works the same, restores only the channels of the first category I have, all the other channels of the categories below don't get restored, it just restores the category itself but no channels under that. I just tried making one and restoring it to check if it gave any error message when loading (which happened and I put it above here) and this time it even loaded like 2 times the backup, I had every channel and category doubled (but still no channels restored for the categories below the first one which gets its channels restored normally).
    If you want I can try sending you the .json backup files.

Here's a pic from my SSH client: https://i.imgur.com/chqUmyX.png

I'm fairly sure that I'm missing something or maybe I setup the whole thing in the wrong manner, as I said it's my first bot I try to setup and self-host and I followed some tutorials about the basis.

from discord-backup.

Androz2091 avatar Androz2091 commented on August 14, 2024

Ok, looks like there is a bug with the package for v12.1.1... 🤔
If you can send me your json file, it will help me to fix the issue.

For the b!info/b!fetch commands, that's very weird... Can you send this part of your code please? (the one that handles those commands)

from discord-backup.

MrD4rio avatar MrD4rio commented on August 14, 2024

@Androz2091 I'm sending you the json files on your email specified here on github profile
For the b!info command, I was just wrong, it's working fine.

from discord-backup.

Androz2091 avatar Androz2091 commented on August 14, 2024

Oh, I see. Looks like you created the backup on a VIP server (where voice channel bitrate can be up to 128KBps)... and the server on which the backup is restored is not VIP. I will fix this problem.

from discord-backup.

MrD4rio avatar MrD4rio commented on August 14, 2024

Everything works fine now, thanks again for your work @Androz2091 keep up with that!

from discord-backup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.