You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to run basic_bot.nim code. Unfortunately it is not compile and return an error message after compiling with nim c -d:ssl mycode.nim :
/Users/nedss/.nimble/pkgs/discord-2.3.0/src/discord.nim(107, 115) template/generic instantiation of `async` from here /Users/nedss/.nimble/pkgs/discord-2.3.0/src/discord.nim(121, 35) template/generic instantiation of `%*` from here /Users/nedss/.nimble/pkgs/discord-2.3.0/src/discord.nim(123, 14) template/generic instantiation of `%` from here /Users/nedss/.choosenim/toolchains/nim-0.20.2/lib/pure/json.nim(369, 41) Error: ambiguous call; both json.%(opt: Option[%.T]) [declared in /Users/nedss/.choosenim/toolchains/nim-0.20.2/lib/pure/json.nim(343, 6)] and objects.%(o: Option[%.T]) [declared in /Users/nedss/.nimble/pkgs/discord-2.3.0/src/objects.nim(630, 6)] match for: (Option[system.string])
Hello !
I tried to run basic_bot.nim code. Unfortunately it is not compile and return an error message after compiling with nim c -d:ssl mycode.nim :
/Users/nedss/.nimble/pkgs/discord-2.3.0/src/discord.nim(107, 115) template/generic instantiation of `async` from here /Users/nedss/.nimble/pkgs/discord-2.3.0/src/discord.nim(121, 35) template/generic instantiation of `%*` from here /Users/nedss/.nimble/pkgs/discord-2.3.0/src/discord.nim(123, 14) template/generic instantiation of `%` from here /Users/nedss/.choosenim/toolchains/nim-0.20.2/lib/pure/json.nim(369, 41) Error: ambiguous call; both json.%(opt: Option[%.T]) [declared in /Users/nedss/.choosenim/toolchains/nim-0.20.2/lib/pure/json.nim(343, 6)] and objects.%(o: Option[%.T]) [declared in /Users/nedss/.nimble/pkgs/discord-2.3.0/src/objects.nim(630, 6)] match for: (Option[system.string])
I put there my code :
I work on MACOS (Mojave) 10.14.6 and have the last version of NIM.
Do you have an idea about this problem ?
Thanks, and thanks for your job !
The text was updated successfully, but these errors were encountered: