137 role command cannot read properties of undefined #141
6 changed files with 3 additions and 3 deletions
|
@ -99,7 +99,7 @@ export default class Lobby extends Command {
|
|||
}
|
||||
|
||||
private SendConfigHelp(context: ICommandContext) {
|
||||
const helpText = readFileSync(`${process.cwd()}/data/lobbyConfig.txt`).toString();
|
||||
const helpText = readFileSync(`${process.cwd()}/data/usage/lobby.txt`).toString();
|
||||
|
||||
const embed = new PublicEmbed(context, "Configure Lobby Command", helpText);
|
||||
embed.SendToCurrentChannel();
|
||||
|
|
|
@ -79,7 +79,7 @@ export default class Config extends Command {
|
|||
}
|
||||
|
||||
private async SendHelpText(context: ICommandContext) {
|
||||
const description = readFileSync(`${process.cwd()}/data/config.txt`).toString();
|
||||
const description = readFileSync(`${process.cwd()}/data/usage/config.txt`).toString();
|
||||
|
||||
const embed = new PublicEmbed(context, "Config", description);
|
||||
|
||||
|
|
|
@ -151,7 +151,7 @@ export default class Role extends Command {
|
|||
}
|
||||
|
||||
private SendConfigHelp(context: ICommandContext) {
|
||||
const helpText = readFileSync(`${process.cwd()}/data/roleConfig.txt`).toString();
|
||||
const helpText = readFileSync(`${process.cwd()}/data/usage/role.txt`).toString();
|
||||
|
||||
const embed = new PublicEmbed(context, "Configure Role Command", helpText);
|
||||
embed.SendToCurrentChannel();
|
||||
|
|
Loading…
Reference in a new issue