mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 00:29:33 +00:00 
			
		
		
		
	Disabled removing commands when bot is going offline
This commit is contained in:
		@@ -35,7 +35,7 @@ module.exports = {
 | 
				
			|||||||
                radio = currentRadios.next();
 | 
					                radio = currentRadios.next();
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            const rest = new REST({ version: '9' }).setToken(token);
 | 
					            /*const rest = new REST({ version: '9' }).setToken(token);
 | 
				
			||||||
            if(version.includes("-dev")){
 | 
					            if(version.includes("-dev")){
 | 
				
			||||||
                await rest.put(
 | 
					                await rest.put(
 | 
				
			||||||
                    Routes.applicationCommands(client.user.id),
 | 
					                    Routes.applicationCommands(client.user.id),
 | 
				
			||||||
@@ -47,13 +47,13 @@ module.exports = {
 | 
				
			|||||||
                    try {
 | 
					                    try {
 | 
				
			||||||
                        await rest.put(
 | 
					                        await rest.put(
 | 
				
			||||||
                            Routes.applicationGuildCommands(client.user.id, guild.id),
 | 
					                            Routes.applicationGuildCommands(client.user.id, guild.id),
 | 
				
			||||||
                            { body: [] },
 | 
					                            { body: [] }
 | 
				
			||||||
                        );
 | 
					                        );
 | 
				
			||||||
                    } catch (DiscordAPIError) {
 | 
					                    } catch (DiscordAPIError) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
            }
 | 
					            }*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            setInterval(() => {
 | 
					            setInterval(() => {
 | 
				
			||||||
                if(radio.done){
 | 
					                if(radio.done){
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user