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).
let biooption = args[0]
message.guild.members.editMe(bio=`${biooption}`)
let biooption = args[0]
message.guild.members.editMe(bio=`${biooption}`)
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
d.js toolkit
d.js toolkit3w ago
souji
souji3w ago
:firHmm: soo, js has no keyword arguments to functions you might be used to python?
AXOL
AXOLOP3w ago
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.
souji
souji3w ago
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})
AXOL
AXOLOP3w ago
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.
d.js toolkit
d.js toolkit3w ago
The issue has been marked as solved by support staff

Did you find this page helpful?