Skip to content

Commit

Permalink
Adjust value of MAX_POST_PREVIEW_LENGTH
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ober committed Mar 31, 2024
1 parent 062dee8 commit 49b3b93
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions acp/discord_notifications_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ class discord_notifications_module
const MIN_POST_PREVIEW_LENGTH = 10;

// The maximum number of characters that the user can set for the post preview setting.
// Note that this is slightly less than the actual allowed maximum by Discord (2048), but we reserve
// some space to prepend the preview text with something like "Preview: " or "Reason: "
const MAX_POST_PREVIEW_LENGTH = 2000;
// See: https://discord.com/developers/docs/resources/channel#embed-object-embed-limits
const MAX_POST_PREVIEW_LENGTH = 1024;

// The name for the form used for this page
const PAGE_FORM_NAME = 'acp_mober_discord_notifications';
Expand Down

0 comments on commit 49b3b93

Please sign in to comment.