• Couldn't match type ‘IO’
with ‘transformers-0.5.6.2:Control.Monad.Trans.Reader.ReaderT
Discord.Handle.DiscordHandle IO’
Expected type: DiscordHandler ()
Actual type: IO ()
• In the expression:
when (not (fromBot m) && isPing (messageText m))
$ do xd <- executeCode m
pure ()
In a case alternative:
MessageCreate m
-> when (not (fromBot m) && isPing (messageText m))
$ do xd <- executeCode m
pure ()
In the expression:
case event of
MessageCreate m
-> when (not (fromBot m) && isPing (messageText m))
$ do xd <- executeCode m
pure ()
_ -> pure ()
idk why im having this error , HELP