aboutsummaryrefslogtreecommitdiff
path: root/rolereact/views.go
diff options
context:
space:
mode:
Diffstat (limited to 'rolereact/views.go')
-rw-r--r--rolereact/views.go8
1 files changed, 4 insertions, 4 deletions
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"},