From 99767cb5044c50ff4c55e8a06881b9a977a15ff9 Mon Sep 17 00:00:00 2001 From: Em Jordan Date: Mon, 25 Nov 2024 20:42:41 -0600 Subject: [PATCH] chore: update discordgo to latest version --- go.mod | 2 +- go.sum | 2 ++ utils/embeds.go | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index fa1ce16..74b04df 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/sylvrs/fuse go 1.20 require ( - github.com/bwmarrin/discordgo v0.27.1 + github.com/bwmarrin/discordgo v0.28.1 github.com/caarlos0/env/v8 v8.0.0 github.com/inconshreveable/log15 v2.16.0+incompatible github.com/joho/godotenv v1.5.1 diff --git a/go.sum b/go.sum index 993aa06..bfe59b0 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,7 @@ github.com/bwmarrin/discordgo v0.27.1 h1:ib9AIc/dom1E/fSIulrBwnez0CToJE113ZGt4HoliGY= github.com/bwmarrin/discordgo v0.27.1/go.mod h1:NJZpH+1AfhIcyQsPeuBKsUtYrRnjkyu0kIVMCHkZtRY= +github.com/bwmarrin/discordgo v0.28.1 h1:gXsuo2GBO7NbR6uqmrrBDplPUx2T3nzu775q/Rd1aG4= +github.com/bwmarrin/discordgo v0.28.1/go.mod h1:NJZpH+1AfhIcyQsPeuBKsUtYrRnjkyu0kIVMCHkZtRY= github.com/caarlos0/env/v8 v8.0.0 h1:POhxHhSpuxrLMIdvTGARuZqR4Jjm8AYmoi/JKlcScs0= github.com/caarlos0/env/v8 v8.0.0/go.mod h1:7K4wMY9bH0esiXSSHlfHLX5xKGQMnkH5Fk4TDSSSzfo= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= diff --git a/utils/embeds.go b/utils/embeds.go index 3623344..7a13f8f 100644 --- a/utils/embeds.go +++ b/utils/embeds.go @@ -14,8 +14,8 @@ func UpdateMessage(session *discordgo.Session, current *discordgo.MessageSend, s ID: sent.ID, Channel: sent.ChannelID, Content: ¤t.Content, - Embeds: current.Embeds, - Components: current.Components, + Embeds: ¤t.Embeds, + Components: ¤t.Components, }) return err }