simmsb / calamity

A library for writing discord bots in haskell
https://hackage.haskell.org/package/calamity
MIT License
109 stars 11 forks source link

No HasID instances for FullContext and LightContext? #50

Closed MorrowM closed 3 years ago

MorrowM commented 3 years ago

Is there a reason FullContext and LightContext don't have HasID Channel/Message/User instances? It'd be quite nice for e.g. invoke $ CreateMessage ctx $ def ... rather than having to use ctx ^. #channel all the time. If not I'd be glad to make a PR.

simmsb commented 3 years ago

I can't remember a reason for not having HasID on Context if there was a reason originally, so go ahead.