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

Optimizations + debug logging

This commit is contained in:
Dragory 2019-05-02 18:34:15 +03:00
parent a84fb87324
commit 6ed8aba35f
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;