Cannot convert `lambda expression' to non-delegate type `string'Fixed
Error while compiling: DiscordTeam.cs(308,206): error CS1660: Cannot convert `lambda expression' to non-delegate type `string'
"Thankyou
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 =>
(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.
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.