forked from engineering/cloudservices
Merge branch 'master' of gitlab.libraryofcode.org:engineering/cloudservices
commit
7a42292f40
|
@ -40,6 +40,7 @@ export default class CWG_Data extends Command {
|
||||||
this.client.signale.log(embeds);
|
this.client.signale.log(embeds);
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if (embeds.length === 1) return message.channel.createMessage({ embed: embeds[0] });
|
if (embeds.length === 1) return message.channel.createMessage({ embed: embeds[0] });
|
||||||
|
// @ts-ignore
|
||||||
return createPaginationEmbed(message, this.client, embeds, {});
|
return createPaginationEmbed(message, this.client, embeds, {});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return this.client.util.handleError(error, message, this);
|
return this.client.util.handleError(error, message, this);
|
||||||
|
|
|
@ -42,6 +42,7 @@ export default class Help extends Command {
|
||||||
});
|
});
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if (cmdPages.length === 1) return message.channel.createMessage({ embed: cmdPages[0] });
|
if (cmdPages.length === 1) return message.channel.createMessage({ embed: cmdPages[0] });
|
||||||
|
// @ts-ignore
|
||||||
return createPaginationEmbed(message, this.client, cmdPages);
|
return createPaginationEmbed(message, this.client, cmdPages);
|
||||||
}
|
}
|
||||||
const resolved = await this.client.util.resolveCommand(args, message);
|
const resolved = await this.client.util.resolveCommand(args, message);
|
||||||
|
|
|
@ -57,6 +57,7 @@ export default class Modlogs extends Command {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
msg.edit({ content: '', embed: embeds[0] });
|
msg.edit({ content: '', embed: embeds[0] });
|
||||||
} else {
|
} else {
|
||||||
|
// @ts-ignore
|
||||||
createPaginationEmbed(message, this.client, embeds, {}, msg);
|
createPaginationEmbed(message, this.client, embeds, {}, msg);
|
||||||
}
|
}
|
||||||
return msg;
|
return msg;
|
||||||
|
|
Loading…
Reference in New Issue