Skip to content

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

License

Notifications You must be signed in to change notification settings

Kelwing/SafeEmbeds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages