FrankFromH
FrankFromH
DIAdiscord.js - Imagine an app
Created by FrankFromH on 12/3/2023 in #djs-questions
Mentions and/or usernames in embeds
I wanted to thank you again. I’m learning. How to do stuff on my own and your answer was far more helpful. I will make sure I post in the right area I didn’t really.s it was the wrong area. I was able to fix it with your help and it’s working as it should.
16 replies
DIAdiscord.js - Imagine an app
Created by FrankFromH on 12/3/2023 in #djs-questions
Mentions and/or usernames in embeds
Thank you
16 replies
DIAdiscord.js - Imagine an app
Created by FrankFromH on 12/3/2023 in #djs-questions
Mentions and/or usernames in embeds
Thank for the help. Glad this is a place to get help when asking humbly.
16 replies
DIAdiscord.js - Imagine an app
Created by FrankFromH on 12/3/2023 in #djs-questions
Mentions and/or usernames in embeds
And i am assuming that means some sort of defining the membercount as well?
16 replies
DIAdiscord.js - Imagine an app
Created by FrankFromH on 12/3/2023 in #djs-questions
Mentions and/or usernames in embeds
clearly i am missing something. Thats why i am here. I am new to this, how do i define the user, i did not have to define the member.user.avatarURL.
16 replies
DIAdiscord.js - Imagine an app
Created by FrankFromH on 12/3/2023 in #djs-questions
Mentions and/or usernames in embeds
My member count also does not work.
16 replies
DIAdiscord.js - Imagine an app
Created by FrankFromH on 12/3/2023 in #djs-questions
Mentions and/or usernames in embeds
The result looks identical as the .setdescription text. Nothing changes.
16 replies
DIAdiscord.js - Imagine an app
Created by FrankFromH on 12/3/2023 in #djs-questions
Mentions and/or usernames in embeds
client.on('guildMemberAdd', (member) => {

const channelId = '1180601301801910372';
const channel = client.channels.cache.get(channelId);
console.log(member)

if (channel) {

const WelcomeEmbed = new EmbedBuilder()
.setColor(0x0099FF)
.setDescription('Welcome! <@${user.id}> We are happy to see you join! You are member ${member.guild.memberCount} of the community!\n\nIn order to start posting and see all of our channels you must visit: RULES and react to the post to be elevated to a hatchling. Once you have completed that you must go to: LINK and follow the steps. This will link your account and allow you to use all features available, such as nesting. And you will now be a juvenile. Check out our ROLES to get roles to notify you of server activities.\n\n\nThank you, we cant wait to see you in the game!')
.setThumbnail(member.user.avatarURL());


channel.send({ embeds: [WelcomeEmbed] } );

} else {
console.error('Channel not found.');
}
});
client.on('guildMemberAdd', (member) => {

const channelId = '1180601301801910372';
const channel = client.channels.cache.get(channelId);
console.log(member)

if (channel) {

const WelcomeEmbed = new EmbedBuilder()
.setColor(0x0099FF)
.setDescription('Welcome! <@${user.id}> We are happy to see you join! You are member ${member.guild.memberCount} of the community!\n\nIn order to start posting and see all of our channels you must visit: RULES and react to the post to be elevated to a hatchling. Once you have completed that you must go to: LINK and follow the steps. This will link your account and allow you to use all features available, such as nesting. And you will now be a juvenile. Check out our ROLES to get roles to notify you of server activities.\n\n\nThank you, we cant wait to see you in the game!')
.setThumbnail(member.user.avatarURL());


channel.send({ embeds: [WelcomeEmbed] } );

} else {
console.error('Channel not found.');
}
});
16 replies
DIAdiscord.js - Imagine an app
Created by FrankFromH on 12/1/2023 in #djs-questions
Another error in visual
const Discord = require('discord.js'); const bot = new Discord.Cliet(); const token = ''; const prefix = ''; bot.on('ready', () => { console.log('i am ready') }) bot.login(token)
13 replies
DIAdiscord.js - Imagine an app
Created by FrankFromH on 12/1/2023 in #djs-questions
Another error in visual
apologies this was the same error i got when trying to load the discord.js and you guys helped me fix that. but now its doing this
13 replies
DIAdiscord.js - Imagine an app
Created by FrankFromH on 12/1/2023 in #djs-questions
npm install discord.js
wow... the one time in life you get the "have you tried restarting?" it worked. Thank you
12 replies
DIAdiscord.js - Imagine an app
Created by FrankFromH on 12/1/2023 in #djs-questions
npm install discord.js
I hae not. let me try that
12 replies
DIAdiscord.js - Imagine an app
Created by FrankFromH on 12/1/2023 in #djs-questions
npm install discord.js
Node.js v21.3.0
12 replies
DIAdiscord.js - Imagine an app
Created by FrankFromH on 12/1/2023 in #djs-questions
npm install discord.js
i got the latest version from them
12 replies
DIAdiscord.js - Imagine an app
Created by FrankFromH on 12/1/2023 in #djs-questions
npm install discord.js
I installed node.js
12 replies