Skip to content

Commit 9a8cc77

Browse files
committed
version bump
1 parent 566624f commit 9a8cc77

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# 7.0.0
22
## Release phase
3+
### 7.1.0
4+
Reintroduced translation support
5+
Introduce new music related commands: `fastforward`, `rewind`, `remove`
6+
Support sharding via environment variables
7+
38
### 7.0.0
49
**This is a breaking change**
510

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@thesharks/wildbeast",
4-
"version": "7.0.0",
4+
"version": "7.1.0",
55
"description": "Discord bot",
66
"main": "index.js",
77
"scripts": {
@@ -24,7 +24,7 @@
2424
},
2525
"homepage": "https://wildbeast.guide/",
2626
"devDependencies": {
27-
"eslint": "^7.9.0",
27+
"eslint": "^7.10.0",
2828
"eslint-config-standard": "^14.1.1",
2929
"eslint-plugin-import": "^2.22.0",
3030
"eslint-plugin-node": "^11.1.0",

src/classes/Command.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ module.exports = class Command {
2929
* @returns {Function}
3030
*/
3131
run (msg, suffix) {
32+
const client = require('../components/client')
33+
if (msg.channel.guild && !msg.channel.permissionsOf(client.user.id).has('sendMessages')) {
34+
return logger.debug('CMD-CTRL', "Discarding command invokation in a channel where the client can't respond")
35+
}
3236
if (!this.fn || typeof this.fn !== 'function') throw new TypeError(`Expected type 'function', got ${typeof this.fn}`)
3337
else return this.fn(msg, suffix)
3438
}

src/classes/VoiceConnection.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = class VoiceConnection {
88
this.textChannel = opts.textChannel
99

1010
this._encoder.on('trackEnd', x => {
11+
if (x.reason === 'STOPPED') return
1112
if (this.playlist.length === 0) {
1213
this.textChannel.createMessage(i18n.t('voice.events.queueEmpty'))
1314
this.destroy()

0 commit comments

Comments
 (0)