mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 00:08:06 +02:00
Destructuring is Nice
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const commando = require('discord.js-commando');
|
||||
const { Command } = require('discord.js-commando');
|
||||
|
||||
String.prototype.shuffle = function() {
|
||||
let a = this.split(''),
|
||||
@@ -12,7 +12,7 @@ String.prototype.shuffle = function() {
|
||||
return a.join('');
|
||||
};
|
||||
|
||||
module.exports = class ShuffleCommand extends commando.Command {
|
||||
module.exports = class ShuffleCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'shuffle',
|
||||
|
||||
Reference in New Issue
Block a user