mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 01:49:37 +00:00 
			
		
		
		
	Update
This commit is contained in:
		@@ -43,11 +43,11 @@ class RadioClient extends Client {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        this.on("ready", () => {
 | 
					        this.on("ready", () => {
 | 
				
			||||||
            require(`${events}ready`).execute(this, Discord);
 | 
					            require(`${events}ready`).execute(this);
 | 
				
			||||||
            this.datastore = new Datastore();
 | 
					            this.datastore = new Datastore();
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        this.on("interactionCreate", interaction => {
 | 
					        this.on("interactionCreate", interaction => {
 | 
				
			||||||
            require(`${events}interactionCreate`).execute(this, interaction, Discord);
 | 
					            require(`${events}interactionCreate`).execute(this, interaction);
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        this.on("voiceStateUpdate", (oldState, newState) => {
 | 
					        this.on("voiceStateUpdate", (oldState, newState) => {
 | 
				
			||||||
            require(`${events}voiceStateUpdate`).execute(this, oldState, newState);
 | 
					            require(`${events}voiceStateUpdate`).execute(this, oldState, newState);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,8 @@
 | 
				
			|||||||
 | 
					import Discord from "discord.js";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports = {
 | 
					module.exports = {
 | 
				
			||||||
    name: 'interactionCreate',
 | 
					    name: 'interactionCreate',
 | 
				
			||||||
    async execute(client, interaction, Discord) {
 | 
					    async execute(client, interaction) {
 | 
				
			||||||
        if (!interaction.isCommand()) return;
 | 
					        if (!interaction.isCommand()) return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const commandName = interaction.commandName;
 | 
					        const commandName = interaction.commandName;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@ const fetch = require('node-fetch');
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
module.exports = {
 | 
					module.exports = {
 | 
				
			||||||
    name: 'ready',
 | 
					    name: 'ready',
 | 
				
			||||||
    async execute(client, Discord) {
 | 
					    async execute(client) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        console.log('RadioX ' + client.config.version);
 | 
					        console.log('RadioX ' + client.config.version);
 | 
				
			||||||
        console.log('Internet Radio to your Discord guild');
 | 
					        console.log('Internet Radio to your Discord guild');
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user