3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Tidy up debug logging in resolveMember

This commit is contained in:
Dragory 2019-05-04 10:49:55 +03:00
parent 3f0277120b
commit 76ab2e9465

View file

@ -600,8 +600,7 @@ export async function resolveMember(bot: Client, guild: Guild, value: string): P
// If not, fetch it from the API
if (!member) {
try {
logger.info(`Fetching unknown member (${user.id} in ${guild.name} (${guild.id})) from the API`);
console.trace();
logger.debug(`Fetching unknown member (${user.id} in ${guild.name} (${guild.id})) from the API`);
member = await bot.getRESTGuildMember(guild.id, user.id);
member.id = user.id;