Skip to content

Commit

Permalink
Update DM message for vote reward role addition
Browse files Browse the repository at this point in the history
  • Loading branch information
chimpdev committed Oct 17, 2024
1 parent ddef707 commit 88e65ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/utils/servers/incrementVote.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async function incrementVote(guildId, userId) {
.catch(() => null);

const dmChannel = user.dmChannel || await user.createDM().catch(() => null);
if (dmChannel) dmChannel.send(await guild.translate('vote_rewards.reward_role_added', { roleName: role.name, guildName: guild.name, vote: voterVotes }));
if (dmChannel) dmChannel.send(await guild.translate('vote_rewards.reward_role_added_dm_message', { roleName: role.name, guildName: guild.name, vote: voterVotes }));
})
.catch(async error => {
sendLog(await guild.translate('vote_rewards.reward_role_add_error', { roleName: role.name, username: Discord.escapeMarkdown(user.username), userId: user.id, errorMessage: error.message }))
Expand Down

0 comments on commit 88e65ed

Please sign in to comment.