mirror of
https://github.com/Xevion/banner.git
synced 2025-12-14 02:11:04 -06:00
Prevent fatal crashes from DM commands
This commit is contained in:
2
main.go
2
main.go
@@ -159,7 +159,7 @@ func main() {
|
||||
}
|
||||
|
||||
// Log command invocation
|
||||
log.Info().Str("name", name).Str("user", interaction.Member.User.Username).Dict("options", options).Msg("Command Invoked")
|
||||
log.Info().Str("name", name).Str("user", GetUsername(interaction)).Dict("options", options).Msg("Command Invoked")
|
||||
|
||||
// Call handler
|
||||
err := handler(internalSession, interaction)
|
||||
|
||||
Reference in New Issue
Block a user