1
0
Fork 0

Merge branch 'master' into 'master'

Addition of "// @ts-ignore" to commands to fix https://gitlab.libraryofcode.us/engineering/cloudservices/-/jobs/1261 as requested by Bsian.

See merge request engineering/cloudservices!1
refactor/models
Matthew 2019-12-27 15:31:54 -05:00
commit ecf35e8597
3 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,7 @@ export default class CWG_Data extends Command {
this.client.signale.log(embeds);
// @ts-ignore
if (embeds.length === 1) return message.channel.createMessage({ embed: embeds[0] });
// @ts-ignore
return createPaginationEmbed(message, this.client, embeds, {});
} catch (error) {
return this.client.util.handleError(error, message, this);

View File

@ -42,6 +42,7 @@ export default class Help extends Command {
});
// @ts-ignore
if (cmdPages.length === 1) return message.channel.createMessage({ embed: cmdPages[0] });
// @ts-ignore
return createPaginationEmbed(message, this.client, cmdPages);
}
const resolved = await this.client.util.resolveCommand(args, message);

View File

@ -57,6 +57,7 @@ export default class Modlogs extends Command {
// @ts-ignore
msg.edit({ content: '', embed: embeds[0] });
} else {
// @ts-ignore
createPaginationEmbed(message, this.client, embeds, {}, msg);
}
return msg;