aboutsummaryrefslogtreecommitdiff
path: root/commands/top.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus@anhgelus.world>2025-05-21 17:28:18 +0200
committerAnhgelus Morhtuuzh <anhgelus@anhgelus.world>2025-05-21 17:28:18 +0200
commit642025681befa35f67cc7c25383eb782ac01feac (patch)
tree6c2b1fdb2712300cdd4615de8d8cae06e8b382af /commands/top.go
parent24f0db37218c4050e01edaa031410382aa252324 (diff)
build(gokord): upgrade to 0.7.0
Diffstat (limited to 'commands/top.go')
-rw-r--r--commands/top.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/commands/top.go b/commands/top.go
index 53ccef9..5a20091 100644
--- a/commands/top.go
+++ b/commands/top.go
@@ -11,13 +11,12 @@ import (
)
func Top(s *discordgo.Session, i *discordgo.InteractionCreate) {
- resp := utils.ResponseBuilder{C: s, I: i}
- err := resp.IsDeferred().Send()
+ resp := utils.NewResponseBuilder(s, i).IsDeferred()
+ err := resp.Send()
if err != nil {
utils.SendAlert("commands/top.go - Sending deferred", err.Error())
return
}
- resp.NotDeferred().IsEdit()
embeds := make([]*discordgo.MessageEmbed, 3)
wg := sync.WaitGroup{}