Wierd wierd problem

const emailSend = crypto.randomBytes(12).toString('hex');
const member = await msg.guild.members.fetch(msg.content);
if (!member) return msg.channel.send('هذا الشخص غير موجود');
if (!msg.member.roles.cache.has('1066350005050425394'))
return msg.channel.send('أنت لا تملك الصلاحيه للتفعيل');
const otp = crypto.randomBytes(12).toString('hex');
const user = new User({
name: member.user.displayName,
role: 'discord-user',
otp,
email: emailSend,
memberID: member.id,
});
await user.save({ validateBeforeSave: false });
const dmChannel = await member.createDM();
dmChannel.send(
مرحبا، نرجو تسجيل الدخول الى هذا الموقع،
علما بأنه نشرك لهذا الرابط سيؤدي لتهكير حسابك
);
dmChannel.send(
${process.env.API_LIVE}/api/v1/users/link?otp=${otp}&email=${emailSend}

);

I have this code here, this code runs on each message sent on some channel, am using discord.js, and mongoose models for this, so dont care for all of this, am using heroku for deploying this app, so the msg, is the msg that was send to the channel, in the development, so on my local computer when i send a message of id of member, it works just fine, but on heroku it makes a request for some reason here:
${process.env.API_LIVE}/api/v1/users/link?otp=${otp}&email=${emailSend}
Thats really wierd
Was this page helpful?