Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Some minor changes, that might have not needed but yea fancy stuff #133

Merged
merged 4 commits into from
Aug 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Music bot that uses Lavalink for its audio player.

## Prerequisites
- [Lavalink server](https://github.com/freyacodes/Lavalink#server-configuration).
- Node.js v12 or above.
- Node.js v16.6.x or above.

## Usage
- Rename `.env.example` to `.env` and replace those values with yours.
Expand Down
3 changes: 2 additions & 1 deletion src/bot.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const { Intents } = require("discord.js");
const { GUILDS, GUILD_MESSAGES, GUILD_VOICE_STATES } = Intents.FLAGS;
const MusicClient = require("./structures/MusicClient");

const client = new MusicClient({
intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.GUILD_VOICE_STATES],
intents: [GUILDS, GUILD_MESSAGES, GUILD_VOICE_STATES],
allowedMentions: {
parse: ["users", "roles"]
}
Expand Down
2 changes: 1 addition & 1 deletion src/structures/MusicHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = class MusicHandler {
}

get node() {
return this.client.shoukaku.nodes.get("main");
return this.client.shoukaku.getNode();
}

get volume() {
Expand Down
4 changes: 3 additions & 1 deletion src/util.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { MessageEmbed, Permissions, MessageActionRow } = require("discord.js");
const prettyMilliseconds = require("pretty-ms");

module.exports = class Util {
class Util {
static embed() {
return new MessageEmbed()
.setColor("#99AAB5");
Expand Down Expand Up @@ -98,3 +98,5 @@ module.exports = class Util {
};
}
};

module.exports = Util;