I'm trying to create a Discord bot in C#, and the code I have here produces an exception with following message: 'ServiceCollection' Does not contain a constructor that takes 0 arguments
_services = new ServiceCollection() .AddSingleton(_client) .AddSingleton(_commands) .BuildServiceProvider(); The references if that helps
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web.Services.Description; using Discord; using Discord.Commands; using Discord.WebSocket; I am quite a beginner in programming, So any help would be greatly appreciated!
ServiceCollectorbut your code only mentions aServiceCollection, is this correct and if so where is that code?. Also can you add the usings of this file? In general try to ask a question as complete as possible