mirror of
https://gitlab.durp.info/durfy/apps/durpot.git
synced 2026-05-07 07:50:32 -05:00
fix lint
This commit is contained in:
parent
b2b50d303b
commit
36d2a725e5
3 changed files with 8 additions and 4 deletions
|
|
@ -33,7 +33,10 @@ func GetUnraidUsage(s *discordgo.Session, m *discordgo.MessageCreate) {
|
|||
|
||||
jsonData, _ := json.MarshalIndent(response, "", " ")
|
||||
jsonStr := string(jsonData)
|
||||
s.ChannelMessageSend(m.ChannelID, "Power Usage Response:\n```json\n"+jsonStr+"\n```")
|
||||
_, err = s.ChannelMessageSend(m.ChannelID, "Power Usage Response:\n```json\n"+jsonStr+"\n```")
|
||||
if err != nil {
|
||||
fmt.Println("Failed to send message")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue