Skip to content

Commit 1005229

Browse files
kkrypt0nnKryptonKryptonXithrius
authored
Added Discord embed limits guide (#690)
Co-authored-by: Krypton <[email protected]> Co-authored-by: Krypton <[email protected]> Co-authored-by: Xithrius <[email protected]>
1 parent 2e40dbd commit 1005229

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Discord Embed Limits
3+
description: A guide that shows the limits of embeds in Discord and how to avoid them.
4+
---
5+
6+
If you plan on using embed responses for your bot you should know the limits of the embeds on Discord or you will get `Invalid Form Body` errors:
7+
8+
- Embed **title** is limited to **256 characters**
9+
- Embed **description** is limited to **4096 characters**
10+
- An embed can contain a maximum of **25 fields**
11+
- A **field name/title** is limited to **256 character** and the **value of the field** is limited to **1024 characters**
12+
- Embed **footer** is limited to **2048 characters**
13+
- Embed **author name** is limited to **256 characters**
14+
- The **total of characters** allowed in an embed is **6000**
15+
16+
Now if you need to get over this limit (for example for a help command), you would need to use pagination.
17+
There are several ways to do that:
18+
19+
- A library called **[disputils](https://pypi.org/project/disputils)**
20+
- An experimental library made by the discord.py developer called **[discord-ext-menus](https://github.com/Rapptz/discord-ext-menus)**
21+
- Make your own setup using **[wait_for()](https://discordpy.readthedocs.io/en/stable/ext/commands/api.html#discord.ext.commands.Bot.wait_for)** and wait for a reaction to be added

0 commit comments

Comments
 (0)