See this issue comment for more information: https://github.com/Decicus/discord-server-change/issues/11#issuecomment-1384293201
This is a quick-and-dirty implementation of a bot that allows you to easily change voice server region with commands.
Only reason this exists is because the Europe servers always die, so I needed something that required the least amount of clicking.
The bot requires, at minimum, Manage Channels
permission to change the voice channel regions.
You have two choices:
Manage Channels
or Administrator
permissions in the server can change regions: Click to invite (Server Changer#1071)For self-hosting
git clone https://github.com/Decicus/discord-server-change.git
npm install
: cd discord-server-change && npm install
config.sample.js
to config.js
.config.js
with a text editor and add your Discord bot token
Discord.allowEveryoneToMoveRegion
can be used to decide if everyone in the server (regardless of permissions) can move server regions.Discord.allowEveryoneToMoveRegion
to false
if you're hosting it on a public server, but it's useful for private servers with just friends.node index.js
.
!region
.If the configuration option Discord.allowEveryoneToMoveRegion
is set to false
(default), then the following server members can use the commands:
Manage Channels
(manageChannels
) permission.Administrator
permission.If the configuration option Discord.allowEveryoneToMoveRegion
is set to true
, then everyone can use the commands - regardless of server permissions.
For public servers, I recommend leaving Discord.allowEveryoneToMoveRegion
to false
.
Keep in mind that commands will only work inside a text channel on the server.
Sending the bot a direct message will not work.
The user running the command will also need to be connected to the voice channel they would like to change regions for.
In the future the bot will allow typing part of the channel name, as long as the "part" matches only one channel, but the initial 2.0.0 release will only work if you're connected to a voice channel.
!region
@Decicus, Current server region: US East
!v region-id
&use
@Decicus, Voice region updated to: us-east
&use => us-east
&usw => us-west
&usc => us-central
&uss => us-south
&eu => rotterdam
&sg => singapore
&br => brazil
&hk => hongkong
&ru => russia
&sy => sydney
&au => sydney
&in => india
&ja => japan
&jp => japan
&auto => "Automatic"
!v
@Decicus, Available regions - 'Region name [Region ID]':
- US West [us-west]
- Brazil [brazil]
- Hong Kong [hongkong]
- India [india]
- Japan [japan]
- Rotterdam [rotterdam]
- Russia [russia]
- Singapore [singapore]
- South Africa [southafrica]
- Sydney [sydney]
- US Central [us-central]
- US East [us-east]
- US South [us-south]
Usage => !v region-id