fix: array/keyArray removed (#6245)

This commit is contained in:
1Computer1
2021-07-31 04:45:33 -04:00
committed by GitHub
parent 797727ab6e
commit bf221f2bef
4 changed files with 4 additions and 4 deletions

View File

@@ -153,7 +153,7 @@ class GuildChannel extends Channel {
*/
get position() {
const sorted = this.guild._sortedChannels(this);
return sorted.array().indexOf(sorted.get(this.id));
return [...sorted.values()].indexOf(sorted.get(this.id));
}
/**