-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use image URL or bytes in the Discord integration (#82)
* describe methods to get an image URL/bytes * UnavailableImageStore -> UnavailableProvider * WIP: Use Image UR or bytes in Discord integration * ErrImagesNoPath, return io.ReadCloser from Provider.GetRawImage(), remove unused OpenImage(), alias for upstream Alert type, remove duplicated import * test images in discord * check for empty annotation * rename errors, comments in Provider interface * typo in comment * embed quota warning log, tests for embed quota * avoid unnecessary nesting * fewer changes in git diff * add comment and deprecation warning for GetImage() * add comment about ErrImagesNoURL and ErrImagesNoPath * refactor logic for creating attachments * close io.ReadCloser
- Loading branch information
1 parent
454ce2a
commit 793c672
Showing
7 changed files
with
392 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.