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 d901ee4672
commit 02dc03e5ef
+1 -1
View File
@@ -177,7 +177,7 @@ function getUserFromMention(mention) {
}
function getChannelName(username) {
return `${username.toLowerCase()}s-adventurers`;
return `${username.toLowerCase().replace(' ', '-')}s-adventurers`;
}
function makeTempChannel(message, adventureMessage) {