Open detmach opened 8 months ago
You are not creating a scope. Either make the service Transient or wrap the GetRequired... into a scope and it will work.
Also this line
var client = new DiscordClient(options)
makes no sense, remove it.
Also this line
var client = new DiscordClient(options)
makes no sense, remove it.
yes is removed it
You are not creating a scope. Either make the service Transient or wrap the GetRequired... into a scope and it will work.
builder.Services.AddTransient<IRobloxCommands, RobloxCommands>();
System.InvalidOperationException: 'Cannot resolve scoped service 'MertBotSystem.RobloxRepo.IRobloxCommands' from root provider.'
This doesn't tell enough to debug, pls either share the entire project or the complete involved classes, how they're registered etc.
sendmail nefarius@dhmx.at
sendmail nefarius@dhmx.at
Received, I'll check it out when I got some time.
I want to both send commands and run existing ones with the help of a web api.
BaseCommandModule or ApplicationCommandModule are among the ones I inherited
var roblox = ctx.Services.GetRequiredService< IRobloxCommands>();
This is the error I get when I call
This is the starting code