(client, userId)
| 108 | } |
| 109 | |
| 110 | export async function resolveUserAuthor(client, userId) { |
| 111 | if (!userId) { |
| 112 | return null; |
| 113 | } |
| 114 | |
| 115 | try { |
| 116 | const user = await client.users.fetch(userId); |
| 117 | return { |
| 118 | name: user.tag, |
| 119 | iconURL: user.displayAvatarURL({ dynamic: true }), |
| 120 | }; |
| 121 | } catch { |
| 122 | return { |
| 123 | name: `User ${userId}`, |
| 124 | }; |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | export function buildStandardLogEmbed({ |
| 129 | color, |
no outgoing calls
no test coverage detected