?
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] });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,14 +3,18 @@ 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({
|
||||||
|
embeds: [
|
||||||
|
new EmbedBuilder()
|
||||||
.setTitle(
|
.setTitle(
|
||||||
`<:join:897246825122254848> Hello ${member}, Welcome to NYX's Support Server!`
|
`<:join:897246825122254848> Hello ${member}, Welcome to NYX's Support Server!`
|
||||||
)
|
)
|
||||||
.setThumbnail(member.user.displayAvatarURL({ dynamic: true, size: 512 }))
|
.setThumbnail(
|
||||||
|
member.user.displayAvatarURL({ dynamic: true, size: 512 })
|
||||||
|
)
|
||||||
.addFields(
|
.addFields(
|
||||||
{
|
{
|
||||||
name: "Read Rules",
|
name: "Read Rules",
|
||||||
|
@ -43,16 +47,18 @@ client.on("guildMemberAdd", async member => {
|
||||||
iconURL: member.user.displayAvatarURL({ dynamic: true }),
|
iconURL: member.user.displayAvatarURL({ dynamic: true }),
|
||||||
})
|
})
|
||||||
.setColor(client.color)
|
.setColor(client.color)
|
||||||
.setTimestamp();
|
.setTimestamp(),
|
||||||
|
],
|
||||||
channel.send({ embeds: [embed] });
|
});
|
||||||
});
|
});
|
||||||
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({
|
||||||
|
embeds: [
|
||||||
|
new EmbedBuilder()
|
||||||
.setTitle(
|
.setTitle(
|
||||||
`<:leave:897246828045680640> ${member.user.username} can't handle being cool! `
|
`<:leave:897246828045680640> ${member.user.username} can't handle being cool! `
|
||||||
)
|
)
|
||||||
|
@ -63,7 +69,7 @@ client.on("guildMemberRemove", async member => {
|
||||||
iconURL: member.user.displayAvatarURL({ dynamic: true }),
|
iconURL: member.user.displayAvatarURL({ dynamic: true }),
|
||||||
})
|
})
|
||||||
.setColor(client.color)
|
.setColor(client.color)
|
||||||
.setTimestamp();
|
.setTimestamp(),
|
||||||
|
],
|
||||||
channel.send({ embeds: [embed] });
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue