From b9407ed52c7f6bde6dc155469e5ed61ba3de4f2a Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Wed, 7 Feb 2024 22:02:02 +0100 Subject: [PATCH] lowercase name for possessive apostroph --- events/channels/voiceStateUpdate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/channels/voiceStateUpdate.js b/events/channels/voiceStateUpdate.js index a640d0c..8b33a89 100644 --- a/events/channels/voiceStateUpdate.js +++ b/events/channels/voiceStateUpdate.js @@ -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,