@@ -90,8 +90,6 @@ let discordProviderSessionRuntimePromise: Promise<DiscordProviderSessionRuntimeM
9090let fetchDiscordApplicationIdForTesting : typeof fetchDiscordApplicationId | undefined ;
9191let createDiscordNativeCommandForTesting : typeof createDiscordNativeCommand | undefined ;
9292let runDiscordGatewayLifecycleForTesting : typeof runDiscordGatewayLifecycle | undefined ;
93- let createDiscordGatewayPluginForTesting : typeof createDiscordGatewayPlugin | undefined ;
94- let createDiscordGatewaySupervisorForTesting : typeof createDiscordGatewaySupervisor | undefined ;
9593let loadDiscordVoiceRuntimeForTesting : ( ( ) => Promise < DiscordVoiceRuntimeModule > ) | undefined ;
9694let loadDiscordProviderSessionRuntimeForTesting :
9795 | ( ( ) => Promise < DiscordProviderSessionRuntimeModule > )
@@ -437,9 +435,8 @@ export async function monitorDiscordProvider(opts: MonitorDiscordOpts = {}) {
437435 discordConfig : discordCfg ,
438436 runtime,
439437 createClient : createClientForTesting ?? ( ( ...args ) => new Client ( ...args ) ) ,
440- createGatewayPlugin : createDiscordGatewayPluginForTesting ?? createDiscordGatewayPlugin ,
441- createGatewaySupervisor :
442- createDiscordGatewaySupervisorForTesting ?? createDiscordGatewaySupervisor ,
438+ createGatewayPlugin : createDiscordGatewayPlugin ,
439+ createGatewaySupervisor : createDiscordGatewaySupervisor ,
443440 createAutoPresenceController : createDiscordAutoPresenceController ,
444441 isDisallowedIntentsError : isDiscordDisallowedIntentsError ,
445442 } ) ;
@@ -643,12 +640,6 @@ export const testing = {
643640 setRunDiscordGatewayLifecycle ( mock ?: typeof runDiscordGatewayLifecycle ) {
644641 runDiscordGatewayLifecycleForTesting = mock ;
645642 } ,
646- setCreateDiscordGatewayPlugin ( mock ?: typeof createDiscordGatewayPlugin ) {
647- createDiscordGatewayPluginForTesting = mock ;
648- } ,
649- setCreateDiscordGatewaySupervisor ( mock ?: typeof createDiscordGatewaySupervisor ) {
650- createDiscordGatewaySupervisorForTesting = mock ;
651- } ,
652643 setLoadDiscordVoiceRuntime ( mock ?: ( ) => Promise < DiscordVoiceRuntimeModule > ) {
653644 loadDiscordVoiceRuntimeForTesting = mock ;
654645 } ,
0 commit comments