Skip to content

Commit

Permalink
fix: stop sending first time messages if DMs are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
abheekda1 committed Feb 20, 2023
1 parent c16a892 commit 11c6803
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/train.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 11c6803

Please sign in to comment.