You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe the problem you are having in as much detail as possible:
I updated the library from v12 to v13-dev to check the new features and I find a bug with the member colors.
First the console returned me TypeError: member.roles.cache.array is not a function so I thought that in this version, the function member.roles.cache.array was deprecated, then I replaced it. After that, the console returned me TypeError: sorted.array is not a function and when I commented the lines with member.displayHexColor and member.displayColor it disappears.
The bug is caused by the file .\src\structures\Role.js in the line 162 because the function array() doesn't exists.
Please describe the problem you are having in as much detail as possible:
I updated the library from v12 to v13-dev to check the new features and I find a bug with the member colors.
First the console returned me
TypeError: member.roles.cache.array is not a function
so I thought that in this version, the functionmember.roles.cache.array
was deprecated, then I replaced it. After that, the console returned meTypeError: sorted.array is not a function
and when I commented the lines withmember.displayHexColor
andmember.displayColor
it disappears.The bug is caused by the file
.\src\structures\Role.js
in the line 162 because the functionarray()
doesn't exists.discord.js/src/structures/Role.js
Line 162 in ee3cdc8
Sample code:
Further details:
array()
function was removed from the Role class, it may be that other functions have been affected.Relevant client options:
The text was updated successfully, but these errors were encountered: