Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Dougley committed Sep 27, 2020
1 parent 566624f commit 9a8cc77
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# 7.0.0
## Release phase
### 7.1.0
Reintroduced translation support
Introduce new music related commands: `fastforward`, `rewind`, `remove`
Support sharding via environment variables

### 7.0.0
**This is a breaking change**

Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@thesharks/wildbeast",
"version": "7.0.0",
"version": "7.1.0",
"description": "Discord bot",
"main": "index.js",
"scripts": {
Expand All @@ -24,7 +24,7 @@
},
"homepage": "https://wildbeast.guide/",
"devDependencies": {
"eslint": "^7.9.0",
"eslint": "^7.10.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-node": "^11.1.0",
Expand Down
4 changes: 4 additions & 0 deletions src/classes/Command.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ module.exports = class Command {
* @returns {Function}
*/
run (msg, suffix) {
const client = require('../components/client')
if (msg.channel.guild && !msg.channel.permissionsOf(client.user.id).has('sendMessages')) {
return logger.debug('CMD-CTRL', "Discarding command invokation in a channel where the client can't respond")
}
if (!this.fn || typeof this.fn !== 'function') throw new TypeError(`Expected type 'function', got ${typeof this.fn}`)
else return this.fn(msg, suffix)
}
Expand Down
1 change: 1 addition & 0 deletions src/classes/VoiceConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = class VoiceConnection {
this.textChannel = opts.textChannel

this._encoder.on('trackEnd', x => {
if (x.reason === 'STOPPED') return
if (this.playlist.length === 0) {
this.textChannel.createMessage(i18n.t('voice.events.queueEmpty'))
this.destroy()
Expand Down

0 comments on commit 9a8cc77

Please sign in to comment.