mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 03:53:17 +00:00
Update
This commit is contained in:
parent
5f5b164e0d
commit
f0dcd76033
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user