Trying to add a '/bug' commandSolved
Hello there!

I think that this plugin is very nice but I missed a thing: a way to report a bug. So I decided to implement that myself and when it was done, post here so you could, if you want, update the plugin.
I was almost done when I got stuck with this error:
Error while compiling: DiscordMessages.cs(587,72): error CS1041: Identifier expected, `false' is a keyword

I spent some time trying to figure out what was the issue but I wasn't able to do so. And by the way, I did not use player data, since I don't think that it's import to keep a track of how many bugs reports a player did. If you want you can add that to open more opportunities like blocking a player from reporting bugs if he has more than X bug reports, feel free to do so but I won't mess with that.
On the other hand, I added a permission to use the command but since I'm not using player data, I used player.HasPermission to check that. The only thing that I would "lose" for not using the player data is the cooldown, but I don't think it's necessary, but, as I said, if you want to edit that and add compatibility with the player data for this command, feel free to do that.

Back to the problem: 
I even tried commenting out the lines from 587 to 601 since they just prompt the player if the message was sent or not, but I got the same error (even the line 586 being commented out. I also tried commenting out from 586 to 601 but the error kept the same!).
Since the file has almost 1000 lines, I will upload it somewhere instead of posting the code here so you can look into it. 
See the file here: https://pastebin.com/MH5Jt9Ji
For direct download click here

PS.: I obviously added the new variables to the lang/config file but since mine is all translated, I won't upload them. The variables that I added where:

On config file:
  • "Bugs - Alert Role": ""
  • "Bugs - Embed Color (DECIMAL)": 3329330
  • "Bug Report - Webhook URL": "Discord Intro to WeebHooks URL"

On lang file:
  • "ReportBugSyntax": "Usage: /bug \"msg\""
  • "Embed_BugReportTitle": "Bug Report"
 
Hope that we find out what the problem is soon and that you like this new feature!
Awaiting your response,
Fernando
I'd suggest develping a plugin that calls this plugin, not modifying this plugin. This plugin provides API methods for you to call.
In response to Wulf ():
I'd suggest develping a plugin that calls this plugin, not modifying this plugin. This plugin provid...
This starts to get a little complex for me but, if I have time, I will try to do that soon. Until there, if someone could help me to implement that, at least for me to use it if the plugin developer doesn't want to add this feature, I would be appreciated.
Hi! A new version is close to being released, please DM me and I'll assist you in making a plugin for this.
In response to ctv ():
Hi! A new version is close to being released, please DM me and I'll assist you in making a plugin fo...
Ok! Thanks!

Merged post

I found the solution. The best way is to use DiscordMessages and another plugin, Rustcord. The "/report" command on rustcord just send a message to Discord (is way simpler than DiscordMessages, the message is sent by a bot and it's only text) so just go to Rustcord.cs and change the command from report to bug.
Soon I will try to develop another plugin using the DiscordMessages API, so we can have the /bug but with embed messages like in DiscordMessages
Locked automatically