diff --git a/buttons/stop.js b/buttons/stop.js index cf48330..03199fa 100644 --- a/buttons/stop.js +++ b/buttons/stop.js @@ -1,8 +1,4 @@ -const { - createMessageEmbed, - createMusicEmbed, - createButton, -} = require('../util/embed.js'); +const { createMessageEmbed } = require('../util/embed.js'); const { getLocale } = require('../lang/lang.js'); const guilds = require('../data/guilds.json'); diff --git a/index.js b/index.js index e057cde..a491b66 100644 --- a/index.js +++ b/index.js @@ -49,19 +49,12 @@ const targz = require('targz'); const client = new discord.Client({ intents: [ - discord.GatewayIntentBits.DirectMessageReactions, - discord.GatewayIntentBits.DirectMessageTyping, - discord.GatewayIntentBits.DirectMessages, - discord.GatewayIntentBits.GuildBans, discord.GatewayIntentBits.GuildEmojisAndStickers, discord.GatewayIntentBits.GuildIntegrations, - discord.GatewayIntentBits.GuildInvites, discord.GatewayIntentBits.GuildMembers, discord.GatewayIntentBits.GuildMessageReactions, discord.GatewayIntentBits.GuildMessageTyping, discord.GatewayIntentBits.GuildMessages, - discord.GatewayIntentBits.GuildPresences, - discord.GatewayIntentBits.GuildScheduledEvents, discord.GatewayIntentBits.GuildVoiceStates, discord.GatewayIntentBits.GuildWebhooks, discord.GatewayIntentBits.Guilds, diff --git a/util/embed.js b/util/embed.js index e64f173..5d1379d 100644 --- a/util/embed.js +++ b/util/embed.js @@ -45,53 +45,44 @@ function createButton(style) { const main = new ActionRowBuilder().addComponents( new ButtonBuilder() .setCustomId(style === 'pause' ? 'resume' : 'pause') - .setLabel(style === 'pause' ? 'Resume' : 'Pause') + //.setLabel(style === 'pause' ? 'Resume' : 'Pause') .setEmoji(style === 'pause' ? '1117306258077257791' : '1117306256781230191') .setStyle(ButtonStyle.Secondary), new ButtonBuilder() .setCustomId('stop') - .setLabel('Stop') + //.setLabel('Stop') .setEmoji('1100927733116186694') .setStyle(ButtonStyle.Danger), new ButtonBuilder() .setCustomId('back') - .setLabel('Back') .setEmoji('1117303043743039599') .setStyle(ButtonStyle.Secondary), new ButtonBuilder() .setCustomId('skip') - .setLabel('Skip') .setEmoji('1117303289365659648') .setStyle(ButtonStyle.Secondary), new ButtonBuilder() - .setCustomId('addR') - .setLabel('Add Relate') + .setCustomId('queue') + .setLabel('Queue') + .setEmoji('1117304805237465138') .setStyle(ButtonStyle.Secondary) ); const other = new ActionRowBuilder().addComponents( new ButtonBuilder() .setCustomId('volumeDown') - .setLabel('Down') + .setLabel('-') .setEmoji('1117303628349313035') .setStyle(ButtonStyle.Secondary), new ButtonBuilder() .setCustomId('volumeUp') - .setLabel('Up') + .setLabel('+') .setEmoji('1117304554216767558') .setStyle(ButtonStyle.Secondary), new ButtonBuilder() .setCustomId('lyric') .setLabel('Lyric') .setStyle(ButtonStyle.Secondary), - new ButtonBuilder() - .setCustomId('queue') - .setLabel('Queue') - .setEmoji('1117304805237465138') - .setStyle(ButtonStyle.Secondary) - ); - - const seek = new ActionRowBuilder().addComponents( new ButtonBuilder() .setCustomId('30m') .setLabel('-30s') @@ -101,7 +92,7 @@ function createButton(style) { .setLabel('+30s') .setStyle(ButtonStyle.Secondary) ); - return [main, other, seek]; + return [main, other]; } module.exports = { createMessageEmbed, createMusicEmbed, createButton };