Add discord embed settings to new users

This commit is contained in:
Lee 2022-11-17 11:25:47 +00:00
parent e02cce0e47
commit 51b542a8e9
No known key found for this signature in database
GPG Key ID: 6EA25896ECCB3121

@ -46,6 +46,13 @@ export async function createUser(username, password) {
password: hashPassword(salt, password), password: hashPassword(salt, password),
salt: salt, salt: salt,
uploadKey: randomString(16), uploadKey: randomString(16),
discordEmbed: {
embed: true,
title: "{id}.{ext}",
description: null,
color: "0063EB",
},
}); });
user.save(); user.save();
} catch (e) { } catch (e) {