Browse Source

fix: stop sending first time messages if DMs are disabled

dependabot/npm_and_yarn/semver-5.7.2 v4.7.5
Abheek Dhawan 2 years ago
parent
commit
11c6803e42
Signed by: abheekd GPG Key ID: 7BE81B8C14475B67
  1. 3
      src/commands/train.ts

3
src/commands/train.ts

@ -53,7 +53,8 @@ export async function execute(interaction: CommandInteraction) {
.addField('GitHub', '[Link](https://github.com/ADawesomeguy/AwesomeSciBo) (a star couldn\'t hurt...)')
.setColor('#ffffff')
.setTimestamp();
interaction.user.send({ embeds: [firstTimeEmbed] });
interaction.user.send({ embeds: [firstTimeEmbed] })
.catch(err => log({ logger: 'train', content: `${err}`, level: 'error' }));
}
else if (obj) {
score = obj.score;

Loading…
Cancel
Save