fix(bot-discord): fix avatarURL not being defined

this shall be the end
This commit is contained in:
GramingFoxTeam
2023-08-10 17:37:32 +03:00
parent 6e94d97234
commit c41e80c1f8

View File

@@ -4,7 +4,7 @@ export default async function reportToLogs(config, client, action, message, { re
const actionUpper = action.charAt(0).toUpperCase() + action.slice(1);
const actionTitle = `${actionUpper} ${actionTo.tag}`;
const actionEmbed = new EmbedBuilder()
.setThumbnail(actionTo.user.avatarURL())
.setThumbnail(actionTo.avatarURL())
.setTitle(actionTitle);
const fields = [