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:
parent
0949a00541
commit
2e74b2de72
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