Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Things that can be fetched from the discord CDN
Synopsis
- class CDNAsset a where
- fetchAsset :: (CDNAsset a, Member (Embed IO) r) => a -> Sem r (Either HttpException ByteString)
- fetchAsset' :: (CDNAsset a, MonadHttp m) => a -> m ByteString
Documentation
class CDNAsset a where Source #
Instances
CDNAsset Avatar Source # | |
CDNAsset MemberAvatar Source # | |
Defined in Calamity.Types.Model.Avatar | |
CDNAsset Emoji Source # | |
CDNAsset GuildBanner Source # | |
Defined in Calamity.Types.Model.Guild.Guild | |
CDNAsset GuildDiscoverySplash Source # | |
Defined in Calamity.Types.Model.Guild.Guild | |
CDNAsset GuildIcon Source # | |
CDNAsset GuildSplash Source # | |
Defined in Calamity.Types.Model.Guild.Guild | |
CDNAsset RoleIcon Source # | |
CDNAsset UserBanner Source # | |
Defined in Calamity.Types.Model.User |
fetchAsset :: (CDNAsset a, Member (Embed IO) r) => a -> Sem r (Either HttpException ByteString) Source #
Retrieve the asset from the CDN
fetchAsset' :: (CDNAsset a, MonadHttp m) => a -> m ByteString Source #
Retrieve the asset from the CDN, like fetchAsset
but gives you more control