-
-
Notifications
You must be signed in to change notification settings - Fork 763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discord embed limits #1819
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In my journey to make Laravel backup Notifications work, I found some difficulties making a
BackupHasFailedNotification
display on Discord. Always returning400 - Bad request
.I finally found out Discord Embed Limits :
And that's right, when a
BackupHasFailedNotification
is called, thefields
name
parameter is way larger than 1024 causing it to returnBad Request
like indicated in the docs.After some tweaks in
DiscordMessage
class it runs as expected.This is what I did :
Notifications/Channels/Discord/DiscordMessage.php
I first added the correct limit numbers but it didn't work. I then decided to round the values and it worked.
Should I suggest a PR for this ?
The text was updated successfully, but these errors were encountered: