SkillAgentSearch skills...

SafeEmbeds

A monkey patcher that makes embeds in Discord.py safe at runtime.

Install / Use

/learn @Kelwing/SafeEmbeds
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Safe Embeds

Provides 400 safety to embeds in Discord. It works by monkey patching the add_field method of the Embed class to truncate the inputs down to 1024 characters.

Example

import discord
from safeembeds import patch_discord

patch_discord()

bot = discord.Bot()

Thats all there is to it. After calling patch_discord, all future Embeds that are created with automatically truncate inputs to fit within the Discord API limits.

Related Skills

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated3y ago
Forks3

Languages

Python

Security Score

70/100

Audited on Jan 8, 2023

No findings