mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 20:23:16 +00:00
Removed unused variable command from commands.
This commit is contained in:
parent
c81dbddab1
commit
ec6ea7e839
@ -3,7 +3,7 @@ module.exports = {
|
||||
description: 'Next Station',
|
||||
permission: 'none',
|
||||
category: 'info',
|
||||
async execute(interaction, client, Discord, command) {
|
||||
async execute(interaction, client, Discord) {
|
||||
let message = {};
|
||||
const radio = client.radio.get(interaction.guild.id);
|
||||
if (!radio) return interaction.reply({
|
||||
|
@ -3,7 +3,7 @@ module.exports = {
|
||||
description: 'Current Radio Station',
|
||||
permission: 'none',
|
||||
category: 'radio',
|
||||
async execute(interaction, client, Discord, command) {
|
||||
async execute(interaction, client, Discord) {
|
||||
let message = {};
|
||||
const radio = client.radio.get(interaction.guild.id);
|
||||
if (!radio) return interaction.reply({
|
||||
|
@ -3,7 +3,7 @@ module.exports = {
|
||||
description: 'Previous Station',
|
||||
permission: 'none',
|
||||
category: 'info',
|
||||
async execute(interaction, client, Discord, command) {
|
||||
async execute(interaction, client, Discord) {
|
||||
let message = {};
|
||||
const radio = client.radio.get(interaction.guild.id);
|
||||
if (!radio) return interaction.reply({
|
||||
|
@ -3,7 +3,7 @@ module.exports = {
|
||||
description: 'Show statistics',
|
||||
permission: 'none',
|
||||
category: 'info',
|
||||
execute(interaction, client, Discord, command) {
|
||||
execute(interaction, client, Discord) {
|
||||
let message = {};
|
||||
let stations = client.stations;
|
||||
let currentGuild = client.datastore.getEntry(interaction.guild.id);
|
||||
|
@ -3,7 +3,7 @@ module.exports = {
|
||||
description: 'Bot Status',
|
||||
permission: 'none',
|
||||
category: 'info',
|
||||
async execute(interaction, client, Discord, command) {
|
||||
async execute(interaction, client, Discord) {
|
||||
let message = {};
|
||||
|
||||
message.statusTitle = client.messages.statusTitle.replace("%client.user.username%", client.user.username);
|
||||
|
@ -3,7 +3,7 @@ module.exports = {
|
||||
description: 'Stop radio',
|
||||
permission: 'none',
|
||||
category: 'radio',
|
||||
async execute(interaction, client, Discord, command) {
|
||||
async execute(interaction, client, Discord) {
|
||||
const radio = client.radio.get(interaction.guild.id);
|
||||
if (client.funcs.check(client, interaction, command)) {
|
||||
client.funcs.statisticsUpdate(client, interaction.guild, radio);
|
||||
|
@ -13,7 +13,7 @@ module.exports = {
|
||||
if (!command) return;
|
||||
|
||||
try {
|
||||
command.execute(interaction, client, Discord, command);
|
||||
command.execute(interaction, client, Discord);
|
||||
} catch (error) {
|
||||
interaction.reply({
|
||||
content: client.messages.runningCommandFailed,
|
||||
@ -27,7 +27,7 @@ module.exports = {
|
||||
if (!command) return;
|
||||
|
||||
try {
|
||||
command.execute(interaction, client, Discord, command);
|
||||
command.execute(interaction, client, Discord);
|
||||
} catch (error) {
|
||||
interaction.reply({
|
||||
content: client.messages.runningCommandFailed,
|
||||
|
Loading…
Reference in New Issue
Block a user