This commit is contained in:
mimu
2022-10-09 11:06:11 +02:00
parent 5275d1f2ac
commit 3f38ae3553
+2
View File
@@ -3,6 +3,7 @@ package commands
import (
"encoding/json"
"fmt"
"log"
"math/rand"
tempest "github.com/Amatsagu/Tempest"
@@ -15,6 +16,7 @@ var Pinned tempest.Command = tempest.Command{
SlashCommandHandler: func(itx tempest.CommandInteraction) {
messages, err := getPinnedMessages(itx.Client.Rest, itx.ChannelId.String())
if err != nil {
log.Printf("failed to get messages: %s", err.Error())
itx.SendLinearReply(err.Error(), false)
return
}