Need help with editMe() (Changing bot's bio/pfp per server)
So I updated my discord.js version to discord.js v14.24.x so I can add a command for server admins to change's the bot's pfp and bio for their server. Right now I am working on the bio part but I couldn't figure out how to get it working. It acts like it succeeded (not returning any errors and sends my success message) but nothing appears to happen for me and the bio is still the application's bio.
Here is my simplified code from my command where it does use an argument to set the bot's bio per server that is relevent to my problem (Yes, I am using prefix commands).
I don't know where to go from here because I tried looking within #djs-questions and #djs-help-v14 and even tried googling the answer but no luck on finding anything that works or anything that can lead me to the right direction so I am basically stuck at a dead end hoping someone can help me get it working.
6 Replies
:firHmm: soo, js has no keyword arguments to functions
you might be used to python?
I did use Python before but I had command arguments in my other commands on my js bot and those worked fine which is how I came up with what I have now.
yeah, so
fn(keword=value) isn't how that works in js
you supply an object with a key-value pair in these lands
fn({keyword: value})I assume I need to do this with the editMe() function?
This new change worked. Thank you so much for helping me. Now I can have a bot customization feature within my bot. Just gotta figure out what a Base64Resolvable/BufferResolvable argument would look like and I would be good to go.
The issue has been marked as solved by support staff