File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
packages/discord.js/src/managers Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ const { Collection } = require('@discordjs/collection');
66const { makeURLSearchParams } = require ( '@discordjs/rest' ) ;
77const { Routes, RouteBases } = require ( 'discord-api-types/v10' ) ;
88const CachedManager = require ( './CachedManager' ) ;
9+ const ShardClientUtil = require ( '../sharding/ShardClientUtil' ) ;
910const { Guild } = require ( '../structures/Guild' ) ;
1011const GuildChannel = require ( '../structures/GuildChannel' ) ;
1112const GuildEmoji = require ( '../structures/GuildEmoji' ) ;
@@ -272,6 +273,7 @@ class GuildManager extends CachedManager {
272273 const data = await this . client . rest . get ( Routes . guild ( id ) , {
273274 query : makeURLSearchParams ( { with_counts : options . withCounts ?? true } ) ,
274275 } ) ;
276+ data . shardId = ShardClientUtil . shardIdForGuildId ( id , this . client . options . shardCount ) ;
275277 return this . _add ( data , options . cache ) ;
276278 }
277279
You can’t perform that action at this time.
0 commit comments