Skip to content

Commit

Permalink
[Enhancement] Include the previous region in the embed message
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Sep 1, 2021
1 parent 18a73b2 commit 71619f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/admin/region.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ module.exports = {
],
});
}

let currentRtc = voiceChannel.rtcRegion;
try {
await voiceChannel.setRTCRegion(region);
await interaction.followUp({
embeds: [
embedMessage(
"#9dcc37",
`Region of ${voiceChannel.toString()} has been changed to ${
`Region of ${voiceChannel.toString()} has been changed from ${currentRtc} to ${
voiceChannel.rtcRegion
}`
),
Expand Down

0 comments on commit 71619f8

Please sign in to comment.