Skip to content

[Feature]: Limit checks for embed #182

@Utkarsh-Patel-13

Description

@Utkarsh-Patel-13

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.Embeds 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)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions