diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-01-15 18:44:04 +1100 |
---|---|---|
committer | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-01-23 23:29:14 +0300 |
commit | c3f947a2699c546c5e88243b5e5ee0da0df32588 (patch) | |
tree | 44f585b257caa19fd819f5c43cd144608e6e55a6 /util | |
parent | Add unhandled channel types to IsTextChannel method (diff) | |
download | server-c3f947a2699c546c5e88243b5e5ee0da0df32588.tar.xz |
channel.owner_id is type string not number
Diffstat (limited to 'util')
-rw-r--r-- | util/src/entities/Channel.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/src/entities/Channel.ts b/util/src/entities/Channel.ts index aa1b823e..6750a002 100644 --- a/util/src/entities/Channel.ts +++ b/util/src/entities/Channel.ts @@ -311,7 +311,7 @@ export class Channel extends BaseClass { //If the owner leave the server user is the new owner if (channel.owner_id === user_id) { - channel.owner_id = 1; // The channel is now owned by the server user + channel.owner_id = "1"; // The channel is now owned by the server user await emitEvent({ event: "CHANNEL_UPDATE", data: await DmChannelDTO.from(channel, [user_id]), |