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

Examples

View .md

/avatar

Show a member's profile picture in large size.

Shows the profile picture of a member, or your own.

text
/avatar member: @Alex

The reply is an embed with the picture at full size.

Setup#

Create a slash command and switch to Advanced.

FieldValue
Command Nameavatar
DescriptionShow someone's avatar

Arguments:

TypeNameRequired
MembermemberNo

Code#

Pre-hook:

python
target = member or user
picture = str(target.display_avatar_url)

set_embed(Message(
    title=f"{target.display_name}'s avatar",
    url=picture,
    image=picture,
    color="#5865F2",
))

Leave the Content / Reply Message box empty.

PartJob
member or userUses the picked member, or you when nobody is picked.
display_avatar_urlThe server avatar if they set one, else their main avatar.
url=pictureMakes the title a link to the full image.
image=pictureShows the picture large inside the embed.

Related#

  • Embeds lists every Message(...) field.
  • Objects lists what you can read from a member.
Previous/coinflipNext /serverinfo

On this page

  • Setup
  • Code
  • Related
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