diff --git a/backend/src/templateFormatter.ts b/backend/src/templateFormatter.ts index 46070649..f5b57b15 100644 --- a/backend/src/templateFormatter.ts +++ b/backend/src/templateFormatter.ts @@ -557,6 +557,11 @@ const baseValues = { if (!str || typeof str !== "string") return ""; return str.replaceAll(/[^\d]+/g, ""); }, + get_snowflake(str) { + // couldn't find a better way of aliasing :( + if (!str || typeof str !== "string") return ""; + return str.replaceAll(/[^\d]+/g, ""); + }, convert_base(value, from, to) { try { // :joy: