Fix vesion name output

This commit is contained in:
Charlie Laabs
2021-12-27 11:29:30 -06:00
parent a96727fa06
commit ade0b40aba

View File

@@ -12,6 +12,7 @@ import Markov, {
import { createConnection } from 'typeorm'; import { createConnection } from 'typeorm';
import { MarkovInputData } from 'markov-strings-db/dist/src/entity/MarkovInputData'; import { MarkovInputData } from 'markov-strings-db/dist/src/entity/MarkovInputData';
import { APIInteractionGuildMember } from 'discord-api-types'; import { APIInteractionGuildMember } from 'discord-api-types';
import type { PackageJsonPerson } from 'types-package-json';
import L from './logger'; import L from './logger';
import { Channel } from './entity/Channel'; import { Channel } from './entity/Channel';
import { Guild } from './entity/Guild'; import { Guild } from './entity/Guild';
@@ -345,7 +346,9 @@ function helpMessage(): Discord.MessageOptions {
`${config.messageCommandPrefix} tts or /${messageCommand.name} tts: True`, `${config.messageCommandPrefix} tts or /${messageCommand.name} tts: True`,
`Runs the ${config.messageCommandPrefix} command and reads it with text-to-speech.` `Runs the ${config.messageCommandPrefix} command and reads it with text-to-speech.`
) )
.setFooter(`${packageJson().name} ${getVersion()} by ${packageJson().author}`); .setFooter(
`${packageJson().name} ${getVersion()} by ${(packageJson().author as PackageJsonPerson).name}`
);
return { return {
embeds: [embed], embeds: [embed],
}; };