diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-03-02 12:38:58 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-03-02 12:38:58 +0100 |
| commit | e566489af26fc9133a3509251812910e03b90c8c (patch) | |
| tree | 186a7aac60c64e3466f7a84f6fcf87e811b2486d /rolereact/manager.go | |
| parent | 443286aabc9d9e433625e0dd99e678754bbc74e5 (diff) | |
build(gokord): update to latest nightly
Diffstat (limited to 'rolereact/manager.go')
| -rw-r--r-- | rolereact/manager.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rolereact/manager.go b/rolereact/manager.go index 1deee14..84081e5 100644 --- a/rolereact/manager.go +++ b/rolereact/manager.go @@ -34,7 +34,7 @@ func MessageContent(message *config.RoleReactMessage) string { func ApplyMessageChange(ctx context.Context, dg bot.Session, i *interaction.Interaction, message *config.RoleReactMessage) string { messageContent := MessageContent(message) - _, err := dg.ChannelAPI().MessageEditComplex(&channel.MessageEdit{ + _, err := channel.EditMessageComplex(&channel.MessageEdit{ Content: &messageContent, AllowedMentions: &channel.MessageAllowedMentions{}, Channel: message.ChannelID, @@ -46,7 +46,7 @@ func ApplyMessageChange(ctx context.Context, dg bot.Session, i *interaction.Inte } for _, role := range message.Roles { if role.Reaction != "" && role.RoleID != "" && err == nil { - err = dg.ChannelAPI().MessageReactionAdd(message.ChannelID, message.MessageID, role.Reaction).Do(ctx) + err = channel.AddReaction(message.ChannelID, message.MessageID, role.Reaction).Do(ctx) } } if err != nil { |
