Skip to content

Commit

Permalink
[Bug] fixed automatic not working because the interaction.options doe…
Browse files Browse the repository at this point in the history
…s not allow a nullish value
  • Loading branch information
naseif committed Sep 1, 2021
1 parent 57887b9 commit cd24b28
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions commands/admin/region.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ module.exports = {
.setName("region")
.setDescription("select the region you wish to set")
.setRequired(true)
.addChoice("Automatic", "null")
.addChoice("Brazil", "brazil")
.addChoice("Europe", "europe")
.addChoice("Hong Kong", "hongkong")
Expand Down Expand Up @@ -57,7 +56,7 @@ module.exports = {
],
});
}

let currentRtc = voiceChannel.rtcRegion;
try {
await voiceChannel.setRTCRegion(region);
await interaction.followUp({
Expand Down
1 change: 0 additions & 1 deletion commands/admin/regionById.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ module.exports = {
.setName("region")
.setDescription("select the region you wish to set")
.setRequired(true)
.addChoice("Automatic", "null")
.addChoice("Brazil", "brazil")
.addChoice("Europe", "europe")
.addChoice("Hong Kong", "hongkong")
Expand Down

0 comments on commit cd24b28

Please sign in to comment.