fix(*): Fix wrong captain name in text channel

This commit is contained in:
2020-10-26 18:14:24 +00:00
parent 69b24b8998
commit 0f5d9278eb
+1 -1
View File
@@ -123,7 +123,7 @@ function getChannelName(username) {
}
function makeTempChannel(message) {
const channelName = getChannelName(message.author.username);
const channelName = getChannelName(playerQueue[0].username);
let createdChannelId = '';
let everyoneRole = message.guild.roles.cache.find(r => r.name === '@everyone');