-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Discord Contact Details
389718094270038018
Title
Adding various limit checks for embed.
What problem does this address?
Embeds have the following limits:
FIELD | LIMIT |
---|---|
total embed length | 6000 characters |
title | 256 characters |
description | 4096 characters |
fields | Up to 25 field objects |
field.name | 256 characters |
field.value | 1024 characters |
footer.text | 2048 characters |
author.name | 256 characters |
None of the discord.Embed
s in the codebase has these checks. These checks are crucial for long embeds like Infractions.
How would this solve the problem?
Possible Solutions:
- Add checks at every usage of
discord.Embed
- Create a flexible global embed helper function/class. (Major rework, but preferable)