Error Message in Dsharp with String Prefix

 var commandsConfig = new CommandsNextConfiguration
        {
            **StringPrefix = new string[] { configJson.Prefix },** //here is the error
            EnableDms = false,
            EnableMentionPrefix = true,

                
        };

So, I got an error which is saying "Cannot implicitly convert type 'string[]' to 'string' ". Can I ask why my code does not work? I am learning Dsharp by an online course and the man who made the course has no problem with this... Please help me!



from Recent Questions - Stack Overflow https://ift.tt/2WZyo26
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept