Replace deprecated image service functions

This commit is contained in:
Essem 2022-01-08 13:26:04 -06:00
parent 6475c91fbc
commit 25e2ac088f
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
4 changed files with 6 additions and 8 deletions

View file

@ -4,7 +4,7 @@ class ImageReloadCommand extends Command {
async run() {
const owners = process.env.OWNER.split(",");
if (!owners.includes(this.message.author.id)) return "Only the bot owner can reload the image servers!";
const amount = await this.ipc.command("image", { type: "reload" }, true);
const amount = await this.ipc.serviceCommand("image", { type: "reload" }, true);
if (amount > 0) {
return `Successfully connected to ${amount} image servers.`;
} else {
@ -16,4 +16,4 @@ class ImageReloadCommand extends Command {
static aliases = ["magickconnect", "magick"];
}
export default ImageReloadCommand;
export default ImageReloadCommand;

View file

@ -3,7 +3,7 @@ import Command from "../../classes/command.js";
class ImageStatsCommand extends Command {
async run() {
await this.client.sendChannelTyping(this.message.channel.id);
const servers = await this.ipc.command("image", { type: "stats" }, true);
const servers = await this.ipc.serviceCommand("image", { type: "stats" }, true);
const embed = {
embeds: [{
"author": {