lowercase name for possessive apostroph

This commit is contained in:
Baipyrus 2024-02-07 22:02:02 +01:00
parent 6ded01b046
commit b9407ed52c

View File

@ -14,7 +14,7 @@ const getchannel = async (member, channels) => {
// Create private channel with all permissions
const name = member.user.username;
const chName = `${name}${name.endsWith('s') ? "'" : "'s"} channel`;
const chName = `${name}${name.toLowerCase().endsWith('s') ? "'" : "'s"} channel`;
const privCh = await channels.create({
name: chName,
type: ChannelType.GuildVoice,