Commit 275573c2 authored by Morgân von Brylân's avatar Morgân von Brylân

Corrigé ">avatar" et ">iconeServeur".

parent 3501a5d3
......@@ -1975,7 +1975,7 @@ function c_avatar(msg, prm)
users = msg.mentions.users.size ? msg.mentions.users.values() : getUsers(prm);
for(let u of users)
mentions.push(u.avatarURL + u.avatarURL.includes("size=") ? "" : "?size=512");
mentions.push(u.avatarURL + (u.avatarURL.includes("size=") ? "" : "?size=512"));
if(mentions.length)
msg.channel.send(mentions.join('\n')).catch(error);
......@@ -1983,13 +1983,13 @@ function c_avatar(msg, prm)
msg.channel.send("Utilisateur non trouvé.");
}
else
msg.channel.send(msg.author.avatarURL + msg.author.avatarURL.includes("size=") ? "" : "?size=512").catch(error);
msg.channel.send(msg.author.avatarURL + (msg.author.avatarURL.includes("size=") ? "" : "?size=512")).catch(error);
}
function c_icôneServeur(msg)
{
var srv = msg.guild;
if(srv)
msg.channel.send(srv.iconURL + srv.iconURL.includes('size=') ? "" : "?size=512").catch(error);
msg.channel.send(srv.iconURL + (srv.iconURL.includes('size=') ? "" : "?size=512")).catch(error);
else
msg.reply(`On n'est pas sur un serveur, ${insulte(msg.author)} !`).catch(error);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment