-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aff16e7
commit d6d51c7
Showing
4 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const Discord = require('discord.js'); | ||
|
||
module.exports = { | ||
name: "guildMemberAdd", | ||
async execute(member) { | ||
// member.guild.channels.cache.get("849283385808912384").send(`${member.user} has joined the server!`); | ||
console.log(member.user); | ||
|
||
const newMemberEmbed = new Discord.MessageEmbed() | ||
.setColor("#d81e5b") | ||
.setTitle("New Member!") | ||
.setDescription(`${member.user} has joined the server! We hope you enjoy your stay!`) | ||
.setThumbnail(member.user.displayAvatarURL()) | ||
.setTimestamp(); | ||
|
||
member.guild.channels.cache.get("849283385808912384").send({ | ||
embeds: [newMemberEmbed] | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
name: "guildMemberRemove", | ||
async execute(member) { | ||
member.guild.channels.cache.get("849283385808912384").send(`${member.user} has left the server!`); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters