Skip to content

Commit 621c153

Browse files
committed
Maybe fix an issue elisa had with discord.py
1 parent ea79151 commit 621c153

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/util/entities/Channel.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,9 @@ export class Channel extends BaseClass {
700700
}
701701

702702
toJSON() {
703+
if (this.position === undefined) {
704+
this.position = 0;
705+
}
703706
return {
704707
...this,
705708

0 commit comments

Comments
 (0)