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:
parent
a84fb87324
commit
6ed8aba35f
3 changed files with 16 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue