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

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation