Cannot convert `lambda expression' to non-delegate type `string'Fixed
DiscordTeam - Failed to compile: DiscordTeam.cs(308,206): error CS1660: Cannot convert `lambda expression' to non-delegate type `string'
I keep getting this error please help "

Error while compiling: DiscordTeam.cs(308,206): error CS1660: Cannot convert `lambda expression' to non-delegate type `string'

"
Thankyou
Please get this fixed it sounds like a great plugin,

Error while compiling: DiscordTeam.cs(308,206): error CS1660: Cannot convert `lambda expression' to non-delegate type `string'

I found a fix for this problem. You'll have to change the line to the following code:

Replace the "categoryid" with the id of the category on your Discord Channel for the Voice Channels.

https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-

 

_client.DiscordServer.CreateGuildChannel(_client, string.Format(GetMessage("channelName", playerId), player.displayName), ChannelType.GUILD_VOICE, null, config.maxPlayersChannel, permissionList, "categoryid", channelCreated =>


Thank you @DomeGamer14!
had the same issue. Thank you Thank you @DomeGamer14 that worked great

(20:18:40) | Error while compiling: DiscordTeam.cs(308,206): error CS1660: Cannot convert `lambda expression' to non-delegate type `string'

All i did was install the plugin.

5ecce520a8e5c.jpeg DomeGamer14

I found a fix for this problem. You'll have to change the line to the following code:

Replace the "categoryid" with the id of the category on your Discord Channel for the Voice Channels.

https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-

 

_client.DiscordServer.CreateGuildChannel(_client, string.Format(GetMessage("channelName", playerId), player.displayName), ChannelType.GUILD_VOICE, null, config.maxPlayersChannel, permissionList, "categoryid", channelCreated =>

 

Awesome, also for those that don't know about Ctrl + F its Line 105. It compiled but still messing with it to get it to work but that fixed the error for sure.

(03:03:11) | Error while compiling: DiscordTeam.cs(308,206): error CS1660: Cannot convert `lambda expression' to non-delegate type `string'

I just noticed I never fixed this issue, I've updated the plugin with a quick fix while I work on a rewrite with new features.

Bless you, man, for taking this on to update and maintain. Huge thanks!
Locked automatically