MCPcopy
hub / github.com/codebymitch/TitanBot / resolveUserAuthor

Function resolveUserAuthor

src/utils/logEmbeds.js:110–126  ·  view source on GitHub ↗
(client, userId)

Source from the content-addressed store, hash-verified

108}
109
110export 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
128export function buildStandardLogEmbed({
129 color,

Callers 3

createTicketLogEmbedFunction · 0.90
handleApplicationModalFunction · 0.90
executeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected