foxbot / Discord.Addons.Interactive

add some interactivity to your commands 🙂
ISC License
73 stars 54 forks source link

Question about NextMessageAsync #30

Open Z3R-0 opened 3 years ago

Z3R-0 commented 3 years ago

Is there a requirement to call this method from within a Command or within the Command class?

I wrote a small Utilities class in which I implemented the method NextMessageByUserContains(string userID, string message). This is meant to be used for finding replies to a command.

Whenever I call this method from my Command class it results in NullReferences. Then when I move the method over to my Command class it works fine. Is there something I am missing?

Tambzy commented 3 years ago

i also get null as response

Z3R-0 commented 3 years ago

This issue still persists.

NightKnight077 commented 3 years ago

This still persists, but I have gotten around it by just doing all the work in my helper utility class and returning the value and using the method in the command module. It does not work in my utility class.