diff --git a/src/discordTools/discordVoice.js b/src/discordTools/discordVoice.js index fbaffe3c6..e38ea24de 100644 --- a/src/discordTools/discordVoice.js +++ b/src/discordTools/discordVoice.js @@ -38,7 +38,7 @@ module.exports = { getVoice: async function (guildId) { const instance = Client.client.getInstance(guildId); - const gender = instance.generalSettings.gender; + const gender = instance.generalSettings.voiceGender; const language = instance.generalSettings.language; if (Actors[language]?.[gender] === null || Actors[language]?.[gender] === undefined) { diff --git a/src/handlers/selectMenuHandler.js b/src/handlers/selectMenuHandler.js index 51914e77c..61524e229 100644 --- a/src/handlers/selectMenuHandler.js +++ b/src/handlers/selectMenuHandler.js @@ -113,14 +113,14 @@ module.exports = async (client, interaction) => { }); } else if (interaction.customId === 'VoiceGender') { - instance.generalSettings.gender = interaction.values[0]; + instance.generalSettings.voiceGender = interaction.values[0]; client.setInstance(guildId, instance); - if (rustplus) rustplus.generalSettings.gender = interaction.values[0]; + if (rustplus) rustplus.generalSettings.voiceGender = interaction.values[0]; client.log(client.intlGet(null, 'infoCap'), client.intlGet(null, 'selectMenuValueChange', { id: `${verifyId}`, - value: `${instance.generalSettings.gender}` + value: `${instance.generalSettings.voiceGender}` })); await client.interactionUpdate(interaction, {