?
This commit is contained in:
parent
47405bb769
commit
6d82a842cf
2 changed files with 63 additions and 57 deletions
|
@ -226,7 +226,7 @@ module.exports = {
|
||||||
.addFields(fields)
|
.addFields(fields)
|
||||||
.setURL(client.web)
|
.setURL(client.web)
|
||||||
.setColor(client.color);
|
.setColor(client.color);
|
||||||
interaction.editReply({ embeds: [embed] });
|
interaction.followUp({ embeds: [embed] });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
118
events/embed.js
118
events/embed.js
|
@ -3,67 +3,73 @@ const { EmbedBuilder } = require("discord.js");
|
||||||
const { Welcome } = require("../config.js");
|
const { Welcome } = require("../config.js");
|
||||||
client.on("guildMemberAdd", async member => {
|
client.on("guildMemberAdd", async member => {
|
||||||
const channel = member.guild.channels.cache.find(
|
const channel = member.guild.channels.cache.find(
|
||||||
channel => channel.id === Welcome
|
channel => channel.id == Welcome
|
||||||
);
|
);
|
||||||
if (!channel) return;
|
if (!channel) return;
|
||||||
const embed = new EmbedBuilder()
|
channel.send({
|
||||||
.setTitle(
|
embeds: [
|
||||||
`<:join:897246825122254848> Hello ${member}, Welcome to NYX's Support Server!`
|
new EmbedBuilder()
|
||||||
)
|
.setTitle(
|
||||||
.setThumbnail(member.user.displayAvatarURL({ dynamic: true, size: 512 }))
|
`<:join:897246825122254848> Hello ${member}, Welcome to NYX's Support Server!`
|
||||||
.addFields(
|
)
|
||||||
{
|
.setThumbnail(
|
||||||
name: "Read Rules",
|
member.user.displayAvatarURL({ dynamic: true, size: 512 })
|
||||||
value: `<#799074874513555496>`,
|
)
|
||||||
inline: true,
|
.addFields(
|
||||||
},
|
{
|
||||||
{
|
name: "Read Rules",
|
||||||
name: "Support Channel",
|
value: `<#799074874513555496>`,
|
||||||
value: `<#837865823225511946>`,
|
inline: true,
|
||||||
inline: true,
|
},
|
||||||
},
|
{
|
||||||
{
|
name: "Support Channel",
|
||||||
name: "FAQ",
|
value: `<#837865823225511946>`,
|
||||||
value: `<#897345265516822558>`,
|
inline: true,
|
||||||
inline: true,
|
},
|
||||||
},
|
{
|
||||||
{
|
name: "FAQ",
|
||||||
name: "Badge",
|
value: `<#897345265516822558>`,
|
||||||
value: `<#897345265516822558>`,
|
inline: true,
|
||||||
inline: true,
|
},
|
||||||
},
|
{
|
||||||
{
|
name: "Badge",
|
||||||
name: "User ID:",
|
value: `<#897345265516822558>`,
|
||||||
value: `\`\`\`\n${member.id}\n\`\`\``,
|
inline: true,
|
||||||
inline: true,
|
},
|
||||||
}
|
{
|
||||||
)
|
name: "User ID:",
|
||||||
.setFooter({
|
value: `\`\`\`\n${member.id}\n\`\`\``,
|
||||||
text: `${member.user.tag} joined the server!`,
|
inline: true,
|
||||||
iconURL: member.user.displayAvatarURL({ dynamic: true }),
|
}
|
||||||
})
|
)
|
||||||
.setColor(client.color)
|
.setFooter({
|
||||||
.setTimestamp();
|
text: `${member.user.tag} joined the server!`,
|
||||||
|
iconURL: member.user.displayAvatarURL({ dynamic: true }),
|
||||||
channel.send({ embeds: [embed] });
|
})
|
||||||
|
.setColor(client.color)
|
||||||
|
.setTimestamp(),
|
||||||
|
],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
client.on("guildMemberRemove", async member => {
|
client.on("guildMemberRemove", async member => {
|
||||||
const channel = member.guild.channels.cache.find(
|
const channel = member.guild.channels.cache.find(
|
||||||
channel => channel.id === Welcome
|
channel => channel.id == Welcome
|
||||||
);
|
);
|
||||||
if (!channel) return;
|
if (!channel) return;
|
||||||
const embed = new EmbedBuilder()
|
channel.send({
|
||||||
.setTitle(
|
embeds: [
|
||||||
`<:leave:897246828045680640> ${member.user.username} can't handle being cool! `
|
new EmbedBuilder()
|
||||||
)
|
.setTitle(
|
||||||
.setThumbnail(member.guild.iconURL({ dynamic: true }))
|
`<:leave:897246828045680640> ${member.user.username} can't handle being cool! `
|
||||||
.setDescription(`We now only have ${member.guild.memberCount} members`)
|
)
|
||||||
.setFooter({
|
.setThumbnail(member.guild.iconURL({ dynamic: true }))
|
||||||
text: `${member.user.tag} left the server!`,
|
.setDescription(`We now only have ${member.guild.memberCount} members`)
|
||||||
iconURL: member.user.displayAvatarURL({ dynamic: true }),
|
.setFooter({
|
||||||
})
|
text: `${member.user.tag} left the server!`,
|
||||||
.setColor(client.color)
|
iconURL: member.user.displayAvatarURL({ dynamic: true }),
|
||||||
.setTimestamp();
|
})
|
||||||
|
.setColor(client.color)
|
||||||
channel.send({ embeds: [embed] });
|
.setTimestamp(),
|
||||||
|
],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue