3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 07:35:02 +00:00

Optimizations + debug logging

This commit is contained in:
Dragory 2019-05-02 18:34:15 +03:00
parent 0949a00541
commit 2e74b2de72
3 changed files with 16 additions and 3 deletions

View file

@ -600,6 +600,9 @@ 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();
member = await bot.getRESTGuildMember(guild.id, user.id);
member.id = user.id;
member.guild = guild;