#Error - node-canvas
2 messages · Page 1 of 1 (latest)
//#region Pair
const getRevelant = await GetPartner(member);
if (getRevelant === null) {
ctx.font = '150px profile';
ctx.textAlign = 'start';
ctx.fillStyle = '#ebebeb';
const noHavePair = 'Не в браке';
fillText(noHavePair, 3175, 1115, 'TEXT');
return;
}
ctx.font = '150px profile';
ctx.textAlign = 'start';
ctx.fillStyle = '#ebebeb';
const getRevelantId = (await GetPartner(member))
? pair!.secondUserId
: pair!.firstUserId;
const pariMember = member.guild.members.cache.get(getRevelantId)!;
const nick = pariMember.user.tag;
fillText(nick, 3175, 1115, 'TEXT');
// fillText('😋', 3175, 1115, 'EMOJI', {
// fillStyle: '#ebebeb',
// font: '150px profile',
// w: 250,
// h: 250,
// });
//#endregion```