Discord.Addons.Interactive icon indicating copy to clipboard operation
Discord.Addons.Interactive copied to clipboard

Question about NextMessageAsync

Open Z3R-0 opened this issue 4 years ago • 3 comments

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?

Z3R-0 avatar Feb 26 '21 09:02 Z3R-0

i also get null as response

Tambzy avatar Apr 19 '21 17:04 Tambzy

This issue still persists.

Z3R-0 avatar May 07 '21 20:05 Z3R-0

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.

NightKnight077 avatar Jul 06 '21 14:07 NightKnight077