Update CustomStatusPresets.plugin.js

This commit is contained in:
Mirco Wittrien 2021-01-09 22:07:56 +01:00
parent 6dcce523e1
commit c2ef0d07d5
1 changed files with 7 additions and 2 deletions

View File

@ -14,8 +14,13 @@ module.exports = (_ => {
"info": {
"name": "CustomStatusPresets",
"author": "DevilBro",
"version": "1.0.1",
"version": "1.0.2",
"description": "Allows you to save custom statuses as quick select"
},
"changeLog": {
"fixed": {
"First Bugs": "All bugs in the first test phase should be fixed"
}
}
};
@ -182,7 +187,7 @@ module.exports = (_ => {
BDFDB.LibraryModules.SettingsUtils.updateRemoteSettings({
customStatus: {
text: presets[key].text.length > 0 ? presets[key].text : null,
expiresAt: expiresAt ? BDFDB_Global.DiscordObjects.Timestamp().add(expiresAt, "ms").toISOString() : null,
expiresAt: expiresAt ? BDFDB.DiscordObjects.Timestamp().add(expiresAt, "ms").toISOString() : null,
emojiId: presets[key].emojiInfo ? presets[key].emojiInfo.id : null,
emojiName: presets[key].emojiInfo ? presets[key].emojiInfo.name : null
}