You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Both memberships expired (until NTNUI membership is renewed)
43
73
returninteraction.editReply({
44
-
content: `⌛ Your membership has expired.\n\n🕒 You registered at ${registry_date}.\n🔃 Updated at ${update_date} (${timestamp}).`,
74
+
content: `⌛ Your **${process.env.GROUP_NAME}** and **NTNUI** membership have expired.\n\n🕒 You linked your Discord account to NTNUI at ${registryDate}.\n🔃 Updated at ${updateDate} (${timestamp}).`,
75
+
flags: MessageFlags.Ephemeral,
76
+
});
77
+
}elseif(!valid){
78
+
// Group membership expired
79
+
returninteraction.editReply({
80
+
content: `⌛ Your **${process.env.GROUP_NAME}** membership has expired. Your **NTNUI** membership expires ${ntnuiExpiryDate}. \n\n🕒 You linked your Discord account to NTNUI at ${registryDate}.\n🔃 Updated at ${updateDate} (${timestamp}).`,
81
+
flags: MessageFlags.Ephemeral,
82
+
});
83
+
}else{
84
+
// Both memberships in good standing
85
+
returninteraction.editReply({
86
+
content: `✅ Your **${process.env.GROUP_NAME}** membership is in good standing!\n⏳ Your **NTNUI** membership expires ${ntnuiExpiryDate}\n\n🕒 You linked your Discord account to NTNUI at ${registryDate}.\n🔃 Updated at ${updateDate} (${timestamp}).`,
45
87
flags: MessageFlags.Ephemeral,
46
88
});
47
89
}
48
-
returninteraction.editReply({
49
-
content: `⏳ Your membership expires ${expiry_date}\n\n🕒 You registered at ${registry_date}.\n🔃 Updated at ${update_date} (${timestamp}).`,
0 commit comments