We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea79151 commit d452006Copy full SHA for d452006
1 file changed
src/util/entities/Channel.ts
@@ -700,6 +700,12 @@ export class Channel extends BaseClass {
700
}
701
702
toJSON() {
703
+ // needed as some CHANNEL_UPDATE event doesn't call the calculatePosition function and doesn't populate
704
+ // the position field. Needs to be looked into more
705
+ // TODO: Look into when this can be undefined during CHANNEL_UPDATE
706
+ if (this.position === undefined) {
707
+ this.position = 0;
708
+ }
709
return {
710
...this,
711
0 commit comments