Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guild.iconURL is not a function #36

Closed
zenojunior opened this issue Mar 13, 2020 · 1 comment
Closed

guild.iconURL is not a function #36

zenojunior opened this issue Mar 13, 2020 · 1 comment

Comments

@zenojunior
Copy link

Can you help me?

When I run this:

// Create the backup
backup.create(message.guild, { jsonBeautify: true }).catch(console.error)

It happens:

TypeError: guild.iconURL is not a function
    at /home/user/projet/node_modules/discord-backup/lib/index.js:147:44
    at step (/home/user/projet/node_modules/discord-backup/lib/index.js:33:23)
    at Object.next (/home/user/projet/node_modules/discord-backup/lib/index.js:14:53)
    at /home/user/projet/node_modules/discord-backup/lib/index.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/home/user/projet/node_modules/discord-backup/lib/index.js:4:12)
    at /home/user/projet/node_modules/discord-backup/lib/index.js:119:83
    at new Promise (<anonymous>)
    at /home/user/projet/node_modules/discord-backup/lib/index.js:119:35
    at step (/home/user/projet/node_modules/discord-backup/lib/index.js:33:23) 

But

console.log(message.guild.iconURL);

The funny thing is that there is an image in message.guild.iconURL, and I use it without being a function.

rm -rf node_modules && rm package-lock.json && npm install

Yes, I already tried that. Unsuccessfully.


Additional information:

  • Node.js version: v13.7.0
  • Npm version: 6.13.6
  • Operation System: W10 (SO 19041,113)
  • WSL:
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:        18.04
Codename:       bionic
@SkyLineBot
Copy link

v11 to v12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants