Replace deprecated image service functions
This commit is contained in:
parent
6475c91fbc
commit
25e2ac088f
4 changed files with 6 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue