calamity-0.8.0.0: A library for writing discord bots in haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Calamity.Types.CDNAsset

Description

Things that can be fetched from the discord CDN

Synopsis

Documentation

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