Skip to content

Commit

Permalink
Upgrade discordgo to 0.27.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xypwn committed Apr 16, 2023
1 parent 9174c1b commit 0f66a3a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions cmd/dischord/dischord.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type UserError struct {
}

const (
interactionFlags = uint64(dc.MessageFlagsEphemeral)
interactionFlags = dc.MessageFlagsEphemeral
)

var (
Expand Down Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=
Expand Down

0 comments on commit 0f66a3a

Please sign in to comment.