diff --git a/cmd/dischord/dischord.go b/cmd/dischord/dischord.go index eeefca3..2a6ef7a 100644 --- a/cmd/dischord/dischord.go +++ b/cmd/dischord/dischord.go @@ -45,7 +45,7 @@ type UserError struct { } const ( - interactionFlags = uint64(dc.MessageFlagsEphemeral) + interactionFlags = dc.MessageFlagsEphemeral ) var ( @@ -111,10 +111,10 @@ func (m *MessageWriter) Message(d *MessageData) error { }) } else if m.thinking { _, err = m.session.InteractionResponseEdit(m.interaction, &dc.WebhookEdit{ - Content: d.Content, + Content: &d.Content, Files: d.Files, - Components: d.Components, - Embeds: d.Embeds, + Components: &d.Components, + Embeds: &d.Embeds, }) } else { _, err = m.session.FollowupMessageCreate(m.interaction, true, &dc.WebhookParams{ diff --git a/go.mod b/go.mod index 8d515bf..61d7cad 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/BurntSushi/toml v1.2.0 - github.com/bwmarrin/discordgo v0.25.0 + github.com/bwmarrin/discordgo v0.27.1 github.com/ulikunitz/xz v0.5.10 golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 ) diff --git a/go.sum b/go.sum index fa804e7..9849b0a 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ github.com/BurntSushi/toml v1.2.0 h1:Rt8g24XnyGTyglgET/PRUNlrUeu9F5L+7FilkXfZgs0= github.com/BurntSushi/toml v1.2.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= -github.com/bwmarrin/discordgo v0.25.0 h1:NXhdfHRNxtwso6FPdzW2i3uBvvU7UIQTghmV2T4nqAs= -github.com/bwmarrin/discordgo v0.25.0/go.mod h1:NJZpH+1AfhIcyQsPeuBKsUtYrRnjkyu0kIVMCHkZtRY= +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/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/ulikunitz/xz v0.5.10 h1:t92gobL9l3HE202wg3rlk19F6X+JOxl9BBrCCMYEYd8=