fix(*): Enable users with spaces in their username to delete their adventure channels

Why on earth does Discord even allow people to have spaces in their usernames?
This commit is contained in:
2020-11-21 14:38:50 +00:00
parent 400b34b9e4
commit 6e02e5ab52
+1 -1
View File
@@ -177,7 +177,7 @@ function getUserFromMention(mention) {
} }
function getChannelName(username) { function getChannelName(username) {
return `${username.toLowerCase()}s-adventurers`; return `${username.toLowerCase().replace(' ', '-')}s-adventurers`;
} }
function makeTempChannel(message, adventureMessage) { function makeTempChannel(message, adventureMessage) {