diff options
Diffstat (limited to 'util/src/entities/Guild.ts')
-rw-r--r-- | util/src/entities/Guild.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/src/entities/Guild.ts b/util/src/entities/Guild.ts index 70bb41c5..328c586e 100644 --- a/util/src/entities/Guild.ts +++ b/util/src/entities/Guild.ts @@ -346,9 +346,9 @@ export class Guild extends BaseClass { }); for (const channel of body.channels?.sort((a, b) => (a.parent_id ? 1 : -1))) { - var id = ids.get(channel.id) || Snowflake.generate(); + let id = ids.get(channel.id) || Snowflake.generate(); - var parent_id = ids.get(channel.parent_id); + let parent_id = ids.get(channel.parent_id); await Channel.createChannel({ ...channel, guild_id, id, parent_id }, body.owner_id, { keepId: true, |