-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
print full stack trace on errors
Showing
6 changed files
with
56 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
module github.com/lavalink-devs/lavalink-bot | ||
|
||
go 1.22 | ||
go 1.22.0 | ||
|
||
require ( | ||
github.com/adrg/frontmatter v0.2.0 | ||
github.com/disgoorg/disgo v0.18.8 | ||
github.com/disgoorg/disgolink/v3 v3.0.1-0.20240311001109-56f250c13235 | ||
github.com/disgoorg/json v1.1.0 | ||
github.com/disgoorg/disgo v0.18.15 | ||
github.com/disgoorg/disgolink/v3 v3.0.4-0.20250131224809-a61f9934fed7 | ||
github.com/disgoorg/json v1.2.0 | ||
github.com/disgoorg/lavalyrics-plugin v0.0.0-20240428194130-71a50d68e826 | ||
github.com/disgoorg/lavasearch-plugin v1.0.1-0.20231229185935-76caa6d35100 | ||
github.com/disgoorg/lavasrc-plugin v1.0.0 | ||
github.com/disgoorg/snowflake/v2 v2.0.1 | ||
github.com/disgoorg/snowflake/v2 v2.0.3 | ||
github.com/disgoorg/sponsorblock-plugin v1.0.1-0.20231229185915-2448f4189bbc | ||
github.com/google/go-github/v52 v52.0.0 | ||
github.com/lithammer/fuzzysearch v1.1.8 | ||
github.com/mattn/go-colorable v0.1.13 | ||
github.com/mattn/go-colorable v0.1.14 | ||
github.com/topi314/tint v0.0.0-20240303212505-44dd4a1b4f7f | ||
go.deanishe.net/fuzzy v1.0.0 | ||
gopkg.in/yaml.v3 v3.0.1 | ||
) | ||
|
||
require ( | ||
github.com/BurntSushi/toml v1.4.0 // indirect | ||
github.com/ProtonMail/go-crypto v1.0.0 // indirect | ||
github.com/cloudflare/circl v1.3.9 // indirect | ||
github.com/ProtonMail/go-crypto v1.1.5 // indirect | ||
github.com/cloudflare/circl v1.5.0 // indirect | ||
github.com/google/go-querystring v1.1.0 // indirect | ||
github.com/gorilla/websocket v1.5.3 // indirect | ||
github.com/magefile/mage v1.15.0 // indirect | ||
github.com/mattn/go-isatty v0.0.20 // indirect | ||
github.com/sasha-s/go-csync v0.0.0-20240107134140-fcbab37b09ad // indirect | ||
golang.org/x/crypto v0.25.0 // indirect | ||
golang.org/x/oauth2 v0.21.0 // indirect | ||
golang.org/x/sys v0.22.0 // indirect | ||
golang.org/x/text v0.16.0 // indirect | ||
golang.org/x/crypto v0.32.0 // indirect | ||
golang.org/x/oauth2 v0.25.0 // indirect | ||
golang.org/x/sys v0.29.0 // indirect | ||
golang.org/x/text v0.21.0 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package res | ||
|
||
import ( | ||
"bytes" | ||
"fmt" | ||
|
||
"github.com/disgoorg/disgo/discord" | ||
) | ||
|
||
func NewExceptionFile(causeStackTrace string) *discord.File { | ||
return &discord.File{ | ||
Name: "exception.txt", | ||
Reader: bytes.NewReader([]byte(fmt.Sprintf("```%s```", causeStackTrace))), | ||
} | ||
} |