Custom Commands docsCustom CommandsDocs

Search docs

Find a page, function or guide

HomeSupportDashboard

Getting started

  • Introduction
  • Your first command
  • How a command runs
  • Variables in replies
  • Text commands
  • Events
  • Using Slushy

Guides

  • Welcome messages
  • Role menus
  • Auto moderation
  • Social alerts
  • Moderation commands
  • Levels and XP
  • Economy and coins
  • Ticket system
  • Giveaways
  • Poll
  • Button game
  • Reminders

Concepts

  • Buttons and menus
  • Forms
  • Saving data
  • Permissions and cooldowns
  • Limits and premium
  • Common mistakes

API reference

  • Response
  • Messages
  • Embeds
  • Members and roles
  • Channels
  • Storage
  • Checks
  • Views
  • Components
  • Modals
  • Interactions
  • Paginators
  • Web and files
  • Scheduling
  • Server events and polls
  • Time
  • Waiting
  • Utilities
  • Objects
  • Event variables

Examples

  • /8ball
  • /coinflip
  • /avatar
  • /serverinfo
  • /rank
  • /remind

Guides

View .md

Welcome messages

Greet new members in a channel or by DM, give them roles, and say goodbye when they leave. No code.

You will set up a welcome message like this:

Welcome to My Server, @Alex! You are our 1284th member.

You can also send a DM, attach a picture banner, give roles on join, and post a goodbye message.

What you need#

  • The bot in your server.
  • A channel for welcome messages, for example #welcome.
  • The bot can see and send messages in that channel.

1. Open Welcome & Leave#

On the dashboard, open Welcome & Leave. The page has four tabs:

TabWhat it does
WelcomeThe message in a channel, and the DM.
LeaveThe goodbye message.
RolesRoles given on join, and roles kept for members who come back.
BannerA picture card with the member's avatar and name.

2. Write the channel message#

In the Welcome tab, find Channel message.

  1. Turn on the switch.
  2. In Channel, pick your welcome channel.
  3. In Message, type your text:
text
Welcome to {server}, {user}! You are our {member_count_ordinal} member.
  1. In Embed, pick a saved embed if you want one. Leave it on No embed for text only.

Changes save on their own.

Placeholders#

Text inside { } is a placeholder. The bot fills it in for each new member.

PlaceholderBecomes
{user}A ping of the new member
{user.mention}Same as {user}
{user.name}Their display name, no ping
{user.id}Their user ID
{server}Your server's name
{member_count}Member count, for example 1284
{member_count_ordinal}Member count as a place, for example 1284th
{date}The date they joined
{time}The time they joined

Note

Welcome messages use only these placeholders. Command variables like {server.member_count} do not work here.

3. Send a DM too#

Under Direct message, turn on the switch and write a message. The bot sends it to every new member.

Some members block DMs from servers. The bot skips them. Nothing breaks.

4. Add a banner#

A banner is a picture with the member's avatar, name and your text on it.

  1. Open the Banner tab.
  2. Pick a design under Designs, or change the Background.
  3. Go back to Welcome.
  4. Turn on Attach the banner in the channel message or the DM.

The banner switch is grey until you design a banner.

5. Test it#

Press Send me a test under the message. The bot sends the message with your own name in it.

To see the real thing, ask a friend to join, or use a second account.

Give roles on join#

Open the Roles tab. In Roles on join, pick up to 25 roles. Every new member gets them.

Roles not given?

The bot needs the Manage Roles permission. The bot's own role must also be above the roles it gives. Drag it higher in Server Settings → Roles.

Retain roles on leave gives members their old roles back when they rejoin. This needs a premium plan.

Say goodbye#

Open the Leave tab. Turn on Leave message, pick a channel and write the text:

text
{user.name} has left {server}. Goodbye!

Use {user.name}, not {user}. A ping to someone who left shows as a broken mention.

Ideas#

  • Point new members to your rules: Read <#123456789012345678> first! Put your real channel ID in.
  • Want logic, like a different message for bots? Make a Member Join event with code. See Events.
  • Track joins with a counter. See Saving data.
PreviousUsing SlushyNext Role menus

On this page

  • What you need
  • 1. Open Welcome & Leave
  • 2. Write the channel message
  • Placeholders
  • 3. Send a DM too
  • 4. Add a banner
  • 5. Test it
  • Give roles on join
  • Say goodbye
  • Ideas
Custom CommandsCustom Commands

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

Join the support server

Product

  • Overview
  • Why us?
  • Premium
  • Template shop

Features

  • AI Agent
  • Reaction roles
  • Welcome messages
  • Embed builder
  • Social alerts
  • Custom bot

Resources

  • Docs
  • Blog
  • Support
  • Dashboard

Company

  • Privacy
  • Terms
  • Contact
contact@ccbot.app

2 Frederick Street, London, WC1X 0ND

Payments secured by Stripe

© WEiRDSOFT LTD. All rights reserved.

Custom Commands