#Error - node-canvas

2 messages · Page 1 of 1 (latest)

molten fableBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
finite elbow
            //#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```