Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback for “guildMembersAdd” #77

Open
zihan-ban opened this issue Jul 11, 2024 · 1 comment
Open

Feedback for “guildMembersAdd” #77

zihan-ban opened this issue Jul 11, 2024 · 1 comment

Comments

@zihan-ban
Copy link

zihan-ban commented Jul 11, 2024

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

@zihan-ban zihan-ban changed the title Feedback for “CommandOptions” Feedback for “guildMembersAdd” Jul 11, 2024
@notunderctrl
Copy link
Member

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/guide/event-file-setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants