Skip to content
Extraits de code Groupes Projets
Valider 9f85f410 rédigé par Will Hunt's avatar Will Hunt
Parcourir les fichiers

Compare channel names in lower case

parent 42721fca
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -49,7 +49,7 @@ export class DiscordBot {
if (this.bot.guilds.has(guildId) ) {
const guild = this.bot.guilds.get(guildId);
return guild.channels.filter((channel) => {
return channel.name === channelName; // Implement searching in the future.
return channel.name.toLowerCase() === channelName.toLowerCase(); // Implement searching in the future.
}).map((channel) => {
return {
alias: `#_discord_${guild.id}_${channel.id}:${this.config.bridge.domain}`,
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter