From 89b23632f5ceeebd82132210c1407dc9514a547b Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sat, 7 Mar 2026 13:20:56 +0100 Subject: feat(gokord): replace snowflake by uint --- rolereact/views.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rolereact/views.go') diff --git a/rolereact/views.go b/rolereact/views.go index 47aa4f6..72a1ea0 100644 --- a/rolereact/views.go +++ b/rolereact/views.go @@ -47,8 +47,8 @@ func MessageModifyComponents(ctx context.Context, i *interaction.Interaction, pa reaction = ":no_entry_sign:" } var roleMention string - if role.RoleID != "" { - roleMention = fmt.Sprintf("<@&%s>", role.RoleID) + if role.RoleID != 0 { + roleMention = fmt.Sprintf("<@&%d>", role.RoleID) } else { roleMention = "*Pas de rôle sélectionné*" } @@ -147,13 +147,13 @@ func MessageModifyRoleComponents(ctx context.Context, i *interaction.Interaction } reactionButton.CustomID = dynamicid.FormatCustomID(SetRoleReaction, *params) defaultRoleValues := make([]component.SelectMenuDefaultValue, 0) - if role.RoleID != "" { + if role.RoleID != 0 { defaultRoleValues = append(defaultRoleValues, component.SelectMenuDefaultValue{ Type: types.SelectMenuDefaultValueRole, ID: role.RoleID, }) } - disableBack = disableBack || (role.RoleID == "") + disableBack = disableBack || (role.RoleID == 0) one := 1 components := []component.Message{ &component.TextDisplay{Content: "## Modifier un message de réaction"}, -- cgit v1.2.3