const { Event } = require("afkhandler");
module.exports = new Event({
name: "guildMemberAdd", // event name
once: false,
// if the command only runs once
run({ client, gadget }, member) {
// run can be execute, callback, fire or emit
console.log(`${member.user.username} joined a guild!`);
},
});
import { Event } from "afkhandler";
export default new Event({
name: "guildMemberAdd", // event name
once: false,
// if the command only runs once
run({ client, gadget }, member) {
// run can be execute, callback, fire or emit
console.log(`${member.user.username} joined a guild!`);
},
});