Skip to content

Increase embed column lengths to 256 - #40

Merged
BenHall-1 merged 1 commit into
masterfrom
fix-embed-limit
Aug 29, 2026
Merged

BenHall-1 merged 1 commit into
masterfrom
fix-embed-limit

Conversation

@biast12

@biast12 biast12 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

The embed title, author_name and fields name have a limit of 256, which currently in the database is 255
https://docs.discord.com/developers/resources/message#embed-object:~:text=should%20display%20inline-,Embed%20Limits,-To%20facilitate%20showing

This is mostly just for the SQL query but it needs to be added in the code too

ALTER TABLE embed_fields ALTER COLUMN "name" TYPE VARCHAR(256);
ALTER TABLE embeds ALTER COLUMN "title" TYPE VARCHAR(256);
ALTER TABLE embeds ALTER COLUMN "author_name" TYPE VARCHAR(256);

Add schema migration statements to expand embed-related text columns to VARCHAR(256): `embed_fields.name`, `embeds.title`, and `embeds.author_name`. This allows longer embed names/titles/author names while keeping existing table creation logic intact.
@biast12
biast12 requested a review from a team as a code owner August 28, 2026 16:21
@BenHall-1
BenHall-1 merged commit 2dc7109 into master Aug 29, 2026
1 check passed
@BenHall-1
BenHall-1 deleted the fix-embed-limit branch August 29, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants