Expression denotes a `type', where a `variable', `value' or `method group' was expectedSolved

Greetings, everyone.

I'm making a plugin to make a Discord Bot related to my server, and at the Presence Status function, concretely in the timer I get the next error:

Error while compiling: Name.cs(147,35): error CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected

Looks like you have part of a comment left in the code. Line 149

DNMmGkL9tr7SPcm.jpg Wulf

Looks like you have part of a comment left in the code. Line 149

kekW you were right, but I still get the same error. I guess its the 10f after the timer.Every(, because its concretely in the }); of the StatusTimer

I'd suggest setting up IntelliSense, as it will show you exactly where the issue is. The time is not the issue though.

2n2t25u2MeAc9jr.jpg Wulf

I'd suggest setting up IntelliSense, as it will show you exactly where the issue is. The time is not the issue though.

Do you know how is exactly called the IntelliSense you are telling me? I've tried finding one in the Visual Studio Code Plugins and I didn't find anyone related to C#

2RfABGjhz1vgZvX.jpg Kashix

It tells me nothing. I still don't know what's the issue. I tried to declare the time in a variable too, still getting the same error.

IntelliSense would show you where the error is if properly set up. The error in the log/console on your server also gives you a close indication. If you fixed the comment error, the new error will be different.
syYp2UoGRvWNDBD.jpg Wulf
IntelliSense would show you where the error is if properly set up. The error in the log/console on your server also gives you a close indication. If you fixed the comment error, the new error will be different.

About the IntelliSense, not clue of how to use it properly xD. But the error is the same. The comment was on the nextFrame part, not in the StatusTimer. Am I missing any library?

Could you show me the current code and error?

VGzblQjxrkCZ206.jpg Wulf

Could you show me the current code and error?

Here you got the pastebin using System;using System.Collections.Generic;using System.Linq;using Syst - Pastebin.com

Error: 

Error while compiling: FantasmeoBot.cs(148,35): error CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected

Merged post

Do someone have any clue about this? I can't still fix it.

According to your code:

  • [PluginReference] Plugin Discord; should be removed
  • _settings.ApiKey doesn't exist
  • _settings.Channels doesn't exist
  • Settings.Channel doesn't exist
  • _settings.EnableCustomLogging doesn't exist
  • ConsoleLog doesn't exist
  • _channelCount doesn't exist
  • Translate doesn't exist
Your plugin won't compile until those issues are resolved.
OfAzJYl5wj0u3RE.jpg Wulf

According to your code:

  • [PluginReference] Plugin Discord; should be removed
  • _settings.ApiKey doesn't exist
  • _settings.Channels doesn't exist
  • Settings.Channel doesn't exist
  • _settings.EnableCustomLogging doesn't exist
  • ConsoleLog doesn't exist
  • _channelCount doesn't exist
  • Translate doesn't exist
Your plugin won't compile until those issues are resolved.

Thank you very much for the help, the issue has been fixed. I don't know how could you get those problems, they helped me a lot. I'll change the status of the topic to 'Solved'.

IntelliSense. ;)

Locked automatically