dbm-network / mods

User-made modifications and improvements to Discord Bot Maker.
https://dbm-network.github.io
MIT License
166 stars 202 forks source link

Store User Info: Avatar URL not a function. #920

Closed fsb-py closed 1 year ago

fsb-py commented 1 year ago

Discord Bot Maker version (master branch only supports the beta 2.0.x)

Describe the bug I'm requesting the user avatar, i'm getting this error.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Temp Var'
  2. Click on 'User Avatar Url and store it'
  3. Send the avatar via embedded message, right click and put the temp var for avatar url and send the command.
  4. See error

Expected behavior Send the user's avatar

Screenshots User Store Avatar image Embed image Error image

Error messages

? C:\Users\onlya\Desktop\valid\actions\store_user_info_MOD.js:155 ? result = user.displayAvatarURL({ ? ^ ? ? TypeError: user.displayAvatarURL is not a function ? at Object.action [as Store User Info] (C:\Users\onlya\Desktop\valid\actions\store_user_info_MOD.js:155:23) ? at processTicksAndRejections (node:internal/process/task_queues:96:5)

fsb-py commented 1 year ago

I'm getting the user via there id and everything else is working except the avatar.

TheMonDon commented 1 year ago

This looks like the user was not found

TheMonDon commented 1 year ago

Closing as this is user error, action works fine for me.