Skip to content

Commit 25f4ae7

Browse files
author
Rasmus Gerdin
committed
Fixes
1 parent 7b552af commit 25f4ae7

6 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/commands/Moderator/ban.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = class extends Command {
2323
if (!Array.isArray(reason) || !reason.length) reason.unshift('Unspecified');
2424
const silent = reason[0].endsWith('-s');
2525
if (silent) reason[0].replace('-s', '');
26+
2627
if (user.id === msg.author.id) return msg.reject(msg.language.get('COMMAND_BAN_NO_BAN_SELF'));
2728
if (user.id === this.client.user.id) return msg.reject(msg.language.get('COMMAND_BAN_NO_BAN_CLIENT'));
2829
if (!msg.member.canMod(user)) return msg.reject(msg.language.get('COMMAND_BAN_NO_PERMS', user));

src/commands/Moderator/kick.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = class extends Command {
2121
if (!Array.isArray(reason) || !reason.length) reason.unshift('Unspecified');
2222
const silent = reason[0].endsWith('-s');
2323
if (silent) reason[0].replace('-s', '');
24+
2425
if (user.id === msg.author.id) return msg.reject(msg.language.get('COMMAND_KICK_NO_KICK_SELF'));
2526
if (user.id === this.client.user.id) return msg.reject(msg.language.get('COMMAND_KICK_NO_KICK_CLIENT'));
2627
if (!msg.member.canMod(user)) return msg.reject(msg.language.get('COMMAND_KICK_NO_PERMS', user));

src/commands/Moderator/softban.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = class extends Command {
2121
if (!Array.isArray(reason) || !reason.length) reason.unshift('Unspecified');
2222
const silent = reason[0].endsWith('-s');
2323
if (silent) reason[0].replace('-s', '');
24+
2425
if (user.id === msg.author.id) return msg.reject(msg.language.get('COMMAND_SOFTBAN_NO_SOFTBAN_SELF'));
2526
if (user.id === this.client.user.id) return msg.reject(msg.language.get('COMMAND_SOFTBAN_NO_SOFTBAN_CLIENT'));
2627
if (!await msg.member.canMod(user)) return msg.reject(msg.language.get('COMMAND_SOFTBAN_NO_PERMS', user));

src/commands/Moderator/vckick.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = class extends Command {
2121
if (!Array.isArray(reason) || !reason.length) reason.unshift('Unspecified');
2222
const silent = reason[0].endsWith('-s');
2323
if (silent) reason[0].replace('-s', '');
24+
2425
if (user.id === msg.author.id) return msg.reject(msg.language.get('COMMAND_VCKICK_NO_VCKICK_SELF'));
2526
if (user.id === this.client.user.id) return msg.reject(msg.language.get('COMMAND_VCKICK_NO_VCKICK_CLIENT'));
2627
if (!await msg.member.canMod(user)) return msg.reject(msg.language.get('COMMAND_VCKICK_NO_PERMS', user));

src/commands/Moderator/warn.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = class extends Command {
2121
if (!Array.isArray(reason) || !reason.length) reason.unshift('Unspecified');
2222
const silent = reason[0].endsWith('-s');
2323
if (silent) reason[0].replace('-s', '');
24+
2425
if (user.id === msg.author.id) return msg.reject(msg.language.get('COMMAND_WARN_NO_WARN_SELF'));
2526
if (user.id === this.client.user.id) return msg.reject(msg.language.get('COMMAND_WARN_NO_WARN_CLIENT'));
2627
if (!msg.member.canMod(user)) return msg.reject(msg.language.get('COMMAND_WARN_NO_PERMS', user));

src/languages/en-US.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,10 @@ module.exports = class extends Language {
341341
COMMAND_COINFLIP_HEADS: '🙂 heads',
342342
COMMAND_COINFLIP_TAILS: '🙃 tails',
343343
COMMAND_JOINDATE_DESCRIPTION: 'Displays your account creation date along with the date you joined the current server you\'re on. Other users can be specified to fetch their account creation and server join dates.', // eslint-disable-line max-len
344+
COMMAND_LYRICS_DESCRIPTION: 'Fetches lyrics and information from Genius for you.',
345+
COMMAND_LYRICS_NOTFOUND: 'The specified song could not be found, please try again.',
346+
COMMAND_LYRICS_GENIUS: 'View full lyrics on Genius',
347+
COMMAND_LYRICS_LYRICS: 'Lyrics',
344348
COMMAND_REMINDER_DESCRIPTION: 'Sets a reminder for you, append \`-dm\` to have the reminder sent to you via DM.',
345349
COMMAND_REMINDER_NOPARAM_WHEN: 'When do you want to be reminded? Tell me how long to wait before reminding you.',
346350
COMMAND_REMINDER_NOPARAM_MESSAGE: 'What do you want to be reminded about?',

0 commit comments

Comments
 (0)