Implemented Lavalink load failed details
Created by: Neuheit
Summary
Adds the exception property whenever a Lavalink track loading fails. Resolves issue #458 (closed).
Details
I created a new struct that contains both the message string and severity of the exception. I also made the severity its own enum with the three enumerators that give details of the potential cause of failure (see https://github.com/sedmelluq/lavaplayer/blob/e7e7e4090c251b9dce14414f9faa7c531e80e8ec/main/src/main/java/com/sedmelluq/discord/lavaplayer/tools/FriendlyException.java#L26).
This struct is added as another property to LavalinkLoadResult
.
I also fixed a few minor grammar issues I saw.
Changes proposed
- Created a new struct,
LavalinkLoadFailedInfo
inLavalinkTrack.cs
, that contains a string message and custom enum for severity. - Created a new enum for the struct called
LoadFailedSeverity
, which has three enumerations as referenced above. - Added this struct as a new property to
LavalinkLoadResult
.
Notes
Sorry about the weird spacing changes at the bottom, I forgot that this branch was based off one that is in a current PR and I had to manually revert the changes.