Ploto icon indicating copy to clipboard operation
Ploto copied to clipboard

Discord Error

Open Yamanipanuchi opened this issue 4 years ago • 4 comments

Been getting this error in the script.

PlotoSpawner @ 7/13/2021 8:34:52 AM : ERROR! Could not send Discord API Call or received Bad request PlotoSpawner @ 7/13/2021 8:34:52 AM : ERROR: Error executing Discord Webhook -> [The remote server returned an error: (400) Bad Request.]!

My discord notifications have been getting through, But I don't think it is announcing when a new plot starts. It only gives me the periodic status.

Yamanipanuchi avatar Jul 13 '21 15:07 Yamanipanuchi

Has to do with the -c not being a part of the $arguments list I've removed the arguments list from the discord notifications and it works fine

KillaDreams avatar Jul 13 '21 15:07 KillaDreams

Where is that in the code? I would assume I would only want to modify the arguments for that notification.

Yamanipanuchi avatar Jul 13 '21 17:07 Yamanipanuchi

Ya i've dug and I cannot find the location you reference.

Yamanipanuchi avatar Jul 15 '21 02:07 Yamanipanuchi

search for this in the ploto.psm1

Event notification in config defined. Sending Discord Notification about spawned job...

then remove the part below $embedBuilder.AddField( DiscordField]::New( where it says something about argument list remove line 1218 to 1225 https://github.com/tydeno/Ploto/blob/b205b0dfaf60f23b4b1e53bb34dceaf8a4575e87/Ploto.psm1#L1218

KillaDreams avatar Jul 15 '21 11:07 KillaDreams