mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 22:32:52 +02:00
Should always be true in DM
This commit is contained in:
@@ -23,7 +23,8 @@ module.exports = class MockingCommand extends Command {
|
|||||||
|
|
||||||
run(msg, { text }) {
|
run(msg, { text }) {
|
||||||
const canEmoji = msg.channel.type === 'text'
|
const canEmoji = msg.channel.type === 'text'
|
||||||
&& msg.channel.permissionsFor(this.client.user).has('USE_EXTERNAL_EMOJIS');
|
? msg.channel.permissionsFor(this.client.user).has('USE_EXTERNAL_EMOJIS')
|
||||||
|
: true;
|
||||||
const letters = text.split('');
|
const letters = text.split('');
|
||||||
for (let i = 0; i < letters.length; i += Math.floor(Math.random() * 4)) {
|
for (let i = 0; i < letters.length; i += Math.floor(Math.random() * 4)) {
|
||||||
letters[i] = letters[i].toUpperCase();
|
letters[i] = letters[i].toUpperCase();
|
||||||
|
|||||||
Reference in New Issue
Block a user