mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 17:30:07 +00:00
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:
@@ -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`;
|
||||
|
||||
@@ -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!**" });
|
||||
|
||||
Reference in New Issue
Block a user