Closed Paladic closed 3 years ago
Hi, you're probably getting a NullReferenceException
because Interactive
is null. Make sure you're properly setting up the InteractiveService
using dependency injection.
Oh ... sorry, I made a mistake and did not notice, or rather, I thought that it would not affect, sorry again. Instead of
public InteractiveService Interactive { get; set; }
i used
private InteractiveService Interactive { get; set; }
or
private readonly InteractiveService Interactive { get; set; }
again sorry, thanks for helping!
Hi. I recently connected to your addon and am seeing this error. I do not understand why it was caused, although it seems to have done everything as in your example. Even the example doesn't work in the end.
Please, help
Error: Discord.Commands.CommandException: Error occurred executing "hello" . ---> System.NullReferenceException: Object reference not set to an instance of an object. at Discord_bot.Modules.General.PaginatorAsync() in C:...\Discord bot\Modules\General.cs:line 302 at Discord.Commands.ModuleClassBuilder.<>c__DisplayClass6_0.<g__ExecuteCallback|0>d.MoveNext()
--- End of stack trace from previous location ---
at Discord.Commands.CommandInfo.ExecuteInternalAsync(ICommandContext context, Object[] args, IServiceProvider services)
--- End of inner exception stack trace ---