Skip to content

Commit

Permalink
v1.1.2
Browse files Browse the repository at this point in the history
fixed some major bug
  • Loading branch information
appujet committed Jun 29, 2022
1 parent a68f466 commit 208a076
Show file tree
Hide file tree
Showing 12 changed files with 587 additions and 418 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lavamusic",
"version": "1.1.1",
"version": "1.1.2",
"description": "lavalink music bot base in erelajs",
"main": "src/index.js",
"scripts": {
Expand Down
140 changes: 110 additions & 30 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/events/Client/playerButton.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const { MessageEmbed, Client, ButtonInteraction, MessageButton, MessageActionRow } = require("discord.js");
const { MessageEmbed, Client, ButtonInteraction } = require("discord.js");
const { convertTime } = require("../../utils/convert");
const { buttonReply } = require("../../utils/functions");
const db = require("../../schema/dj");

module.exports = {
name: "playerButtons",
Expand All @@ -19,7 +18,6 @@ module.exports = {
const color = client.embedColor;
if (!interaction.member.voice.channel) return await buttonReply(interaction, `You are not connected to a voice channel to use this button.`, color);
if (interaction.guild.me.voice.channel && interaction.guild.me.voice.channelId !== interaction.member.voice.channelId) return await buttonReply(interaction, `You are not connected to ${interaction.guild.me.voice.channel} to use this buttons.`, color);
//let data2 = await db.findOne({ Guild: interaction.guildId })
const player = interaction.client.manager.get(interaction.guildId);

if(!player) return await buttonReply(interaction, `Nothing is playing right now.`, color);
Expand Down
6 changes: 3 additions & 3 deletions src/events/Client/voiceStateUpdate.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const { MusicBot } = require("../../structures/MusicClient");
const Client = require("../../index");
const { VoiceState, MessageEmbed } = require("discord.js");
/*
/**
*
* @param {MusicBot} client
* @param {Client} client
* @param {VoiceState} oldState
* @param {VoiceState} newState
* @returns {Promise<void>}
Expand Down
Loading

0 comments on commit 208a076

Please sign in to comment.