Custom Commands homeCustom Commands
  • Blog
  • Privacy
  • Premium
  • Support
Back to blog
// blog

Send welcome message using custom commands bot

How to send welcome message to a user when he joins server

Md Shahriyar Alam

2 years ago

·1 min read

To send welcome message to a user using custom commands bot, we have to create and Event Handler. Go to dashboard and click Events, Then click Create button

Then give the event any name and select MEMBER_JOIN on Trigger

Then write this code in Pre

py
send_dm(user, f"Welcome to {server.name}")

If you also want to give a role on memebr join, Additionally use this code

py
send_dm(user, f"Welcome to {server.name}")
add_roles(user, role_id)
# Put the role id you want to give

Custom commsnds bot makes it super simple or non-coder users to be able to define their own logic into their commands

Loading comments…

{}

Need help?

Have a question, a suggestion, or stuck on something? Reach out — we're happy to help.

DiscordJoin support server
Custom CommandsCustom Commands

The #1 custom commands Discord bot — build commands, events and databases with zero boilerplate.

Links

HomeBlogPrivacySupport

Contact

[email protected]

2 Frederick StreetLondon, WC1X 0ND

{ / } custom commands

© WEiRDSOFT LTD. All rights reserved.