@@ -3,7 +3,7 @@ import { TYPES } from '../../core/inversify.types';
3
3
import { GuildRepo } from '../../repository/guild.repo' ;
4
4
import { performance } from 'perf_hooks' ;
5
5
import { RedisService } from './redis.service' ;
6
- import { liveClient } from '../../modules/app' ;
6
+ import { discordClient } from '../../modules/app' ;
7
7
import { DiscordEmbeds } from '@live-apps/discord' ;
8
8
import { DiscordEmbedField } from '../../types/discord.types' ;
9
9
import { QueueService } from './queue.service' ;
@@ -128,7 +128,7 @@ Certain features won't work unless kitty chan can access these services. 💡`,
128
128
embeds . fields ?. push ( { name : '' , value : '' } ) ; // Add an empty field for spacing
129
129
}
130
130
131
- await liveClient . message . sendEmbed ( channelId , [ embeds ] ) ;
131
+ await discordClient . message . sendEmbed ( channelId , [ embeds ] ) ;
132
132
}
133
133
134
134
/**MongoDB - Check by fetching home guild */
@@ -245,7 +245,7 @@ Certain features won't work unless kitty chan can access these services. 💡`,
245
245
/**LiveApps Discord - API call */
246
246
private async liveAppsDiscordAPI ( guildId : string ) {
247
247
const start = performance . now ( ) ;
248
- const getGuild = await liveClient . guild . fetch ( guildId , {
248
+ const getGuild = await discordClient . guild . fetch ( guildId , {
249
249
ignoreCache : true ,
250
250
expiry : 3600 ,
251
251
} ) ;
@@ -269,7 +269,7 @@ Certain features won't work unless kitty chan can access these services. 💡`,
269
269
/**LiveApps Discord - Fetch Cache */
270
270
private async liveAppsDiscordCache ( guildId : string ) {
271
271
const start = performance . now ( ) ;
272
- const getGuild = await liveClient . guild . fetch ( guildId , {
272
+ const getGuild = await discordClient . guild . fetch ( guildId , {
273
273
expiry : 3600 ,
274
274
} ) ;
275
275
const end = performance . now ( ) ;
0 commit comments