Emoji rest methods (node-migration-clean) (#2713)

* feat: all emoji rest methods

* Fix code style issues with ESLint

Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
This commit is contained in:
Awesome Stickz
2023-01-06 02:46:20 +05:30
committed by GitHub
parent 51e9690b9b
commit 80eabe5f44
182 changed files with 489 additions and 311 deletions

View File

@@ -9,11 +9,12 @@ class evalcommand extends BaseCommand {
constructor(data) {
super(data);
}
async execute() {
if (!this.client.config.owners.includes(String(this.user.id))) return;
if (!(this.args.length > 0)) return this.reply({ content: "**You must provide something to eval!**" });
let inputOfEval = this.args.join(" ");
const inputOfEval = this.args.join(" ");
let outputOfEval;
let typeOfEval;
@@ -28,7 +29,7 @@ class evalcommand extends BaseCommand {
typeOfEval = e.name;
}
var seen = [];
const seen = [];
outputOfEval = typeof outputOfEval === "object"
? JSON.stringify(outputOfEval, (_, value) => {
if (value == `Bot ${this.client.config.token}`) return `BOT_TOKEN`;

View File

@@ -7,6 +7,7 @@ class reloadcommand extends BaseCommand {
constructor(data) {
super(data);
}
async execute() {
if (!this.client.config.owners.includes(String(this.user.id))) return;
if (!this.args[0]) return this.reply({ content: "**You must provide a command to reload!**" });