unban reason not working

unban(target, { reason: `Unbanned by: ${interaction.user.tag} \ Reason: ${interaction.options.getString('reason')}` })
unban(target, { reason: `Unbanned by: ${interaction.user.tag} \ Reason: ${interaction.options.getString('reason')}` })
why doesnt it set this as the reason for unbanning them?
9 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
MrMythical
MrMythical3y ago
Don't pass an object It takes a simple string
JollyJohn
JollyJohnOP3y ago
so its not like ban?
MrMythical
MrMythical3y ago
No
souji
souji3y ago
ban has more options
JollyJohn
JollyJohnOP3y ago
Oh ok so ill just make it a string
MrMythical
MrMythical3y ago
Because that has deleteMessageDays and deleteMessageSeconds
JollyJohn
JollyJohnOP3y ago
mhm
MrMythical
MrMythical3y ago
but that's not in unban
Want results from more Discord servers?
Add your server