krisppurg / dimscord

A Discord Bot & REST Library for Nim.
https://krisppurg.github.io/dimscord/
MIT License
222 stars 22 forks source link

[BUG] `attempting to call undeclared routine: 'getChannel'` on execution #54

Closed rikusen0335 closed 3 years ago

rikusen0335 commented 3 years ago

Describe the bug Got an error: attempting to call undeclared routine: 'getChannel' on executing program with dimscmd.

Steps to reproduce Copy-paste https://github.com/krisppurg/dimscord README sample, and just add dimscmd to import

Expected behavior Actually runs

Screenshots

Additional context dimscord -> 1.2.5 dimscmd -> 1.1.2 nim -> 1.4.8

rikusen0335 commented 3 years ago

As a context, I'm sorry I am very new to Nim, so I am missed something I have to.

ire4ever1190 commented 3 years ago

author of dimscmd here could you uninstall dimscord with nimble uninstall dimscord and then install the bleeding edge version with nimble install dimscord@#head?

rikusen0335 commented 3 years ago

@ire4ever1190 Thanks for quick reply! Okay, lemme try it.

rikusen0335 commented 3 years ago

I think it has fixed. Thank you for helping and sorry for bothers you.

ire4ever1190 commented 3 years ago

Happy to help if there are anymore issues you can always create an issue on the dimscmd page or ask on the discord

krisppurg commented 3 years ago

Also if that error comes from a third party dsl library (like dimscmd), you could either make a PR or Issue to dimscmd.

Anyways, hobble I think you might either make a seperate getChannel for the time being using api.request(...), since that is also public.

krisppurg commented 3 years ago

By hobble, I mean @ire4ever1190 my bad lol.

ire4ever1190 commented 3 years ago

my fault for having different names lol But I don't know how this issue popped up seeing as I require a specific commit in dimscmd that contains the newer fixes I need Think nim doesn't do the same version resolution when you run the file directly instead of using nimble