commandkit icon indicating copy to clipboard operation
commandkit copied to clipboard

Feedback for “guildMembersAdd”

Open zihan-ban opened this issue 1 year ago • 1 comments

I wanna have a welcome bot. But I dont know how guildMembersAdd works

zihan-ban avatar Jul 11 '24 13:07 zihan-ban

You can create a new folder inside your events folder with the name of the event you want to handle. For example, for the "guildMemberAdd" event, you'd create a "guildMemberAdd" folder inside the events folder.

Inside this folder you can create files (name doesn't matter) which export a default function. Then every time the event is emitted, that function will be called.

You can read more here: https://commandkit.js.org/docs/guide/event-file-setup

notunderctrl avatar Jul 11 '24 14:07 notunderctrl