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

Concepts

View .md

Limits and premium

How much one command run can do, what premium changes, and the two premium-only functions.

Every run of a command or event has limits. They keep one script from spamming a server or slowing the bot for everyone.

A run is one use of a command or one time an event fires. The pre-hook and post-hook of one run share the same limits.

Actions per run#

ActionFreePremium
send_message and forward_message (together)35
send_dm22
add_roles515
remove_roles515
fetch, different web requests520
load_file, different links520
Page lists (PaginatorV2)33

The command's own reply is not counted. Only extra messages are.

Fetching the same web address twice in one run counts once. The second time comes from memory.

Image templates (render_template) are limited per minute, not per run: 20 a minute per server on free, 120 on premium. On free, going over stops the script. On premium, the call waits its turn.

Sizes#

ThingFreePremium
Download size for fetch and load_file5 MB100 MB
Mongo results per search10,000500,000
Images per rendered template515

Code limits#

These are the same on every plan:

ThingLimit
Loop steps in one run (all loops together)100,000
Memory256 MB
range() size1,000,000
sleep()1 day
Pages in a page list200
Suggestions in autocomplete25

There is no time limit. A command can wait for button clicks for minutes. The limits count work, not time.

Note

All loops in one run share the 100,000 steps. A loop inside a loop uses them up fast. Loop over members once, not members times roles.

Premium-only features#

Only these refuse to run on a free server:

FeatureWhat happens on free
ask_ai(...)Stops with "ask_ai is a premium feature".
Repeating jobs (start_job)The job pauses itself when it fires.
Message eventsThey do not run.

Everything else works on free. Premium only raises the numbers above.

schedule works on free. It caps how many actions can wait at once: 20 on free, 100 on Starter, 250 on Basic, 1,000 on Advanced. They free up as they run. cancel_schedule, list_schedules and render_template also work on free.

Dashboard limits#

Some limits depend on your plan, but your code never sees them:

  • How many commands you can have.
  • How many events can be on at once. Free has 2.

See the Premium page for each plan.

Write for free#

If a command fits the free limits, it works on every server. A command that sends 5 messages breaks on free servers.

PreviousPermissions and cooldownsNext Common mistakes

On this page

  • Actions per run
  • Sizes
  • Code limits
  • Premium-only features
  • Dashboard limits
  • Write for free
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