stuff
This commit is contained in:
parent
1ebb5020ce
commit
fdc5ee254c
|
@ -2536,7 +2536,6 @@ module.exports = (_ => {
|
|||
status = typeof status == "string" ? status.toLowerCase() : null;
|
||||
switch (status) {
|
||||
case "online": return BDFDB.DiscordConstants.Colors.STATUS_GREEN;
|
||||
case "mobile": return BDFDB.DiscordConstants.Colors.STATUS_GREEN;
|
||||
case "idle": return BDFDB.DiscordConstants.Colors.STATUS_YELLOW;
|
||||
case "dnd": return BDFDB.DiscordConstants.Colors.STATUS_RED;
|
||||
case "playing": return useColor ? BDFDB.DiscordConstants.Colors.BRAND : "var(--bdfdb-blurple)";
|
||||
|
@ -2549,6 +2548,10 @@ module.exports = (_ => {
|
|||
for (let activity of LibraryModules.StatusMetaUtils.getActivities(id)) if (activity.type != BDFDB.DiscordConstants.ActivityTypes.CUSTOM_STATUS) return activity;
|
||||
return null;
|
||||
};
|
||||
BDFDB.UserUtils.getCustomStatus = function (id = BDFDB.UserUtils.me.id) {
|
||||
for (let activity of LibraryModules.StatusMetaUtils.getActivities(id)) if (activity.type == BDFDB.DiscordConstants.ActivityTypes.CUSTOM_STATUS) return activity;
|
||||
return null;
|
||||
};
|
||||
BDFDB.UserUtils.getAvatar = function (id = BDFDB.UserUtils.me.id) {
|
||||
let user = LibraryModules.UserStore.getUser(typeof id == "number" ? id.toFixed() : id);
|
||||
if (!user) return window.location.origin + "/assets/322c936a8c8be1b803cd94861bdfa868.png";
|
||||
|
@ -6620,7 +6623,7 @@ module.exports = (_ => {
|
|||
})).flat(10).filter(n => n)
|
||||
})
|
||||
]
|
||||
}), "title", "data", "settings", "renderLabel", "cardClassName", "cardStyle", "checkboxColor", "getCheckboxColor", "getCheckboxValue", "onCheckboxChange", "configWidth", "pagination"));
|
||||
}), "title", "data", "settings", "renderLabel", "cardClassName", "cardStyle", "checkboxColor", "getCheckboxColor", "getCheckboxValue", "onCheckboxChange", "configWidth", "biggestWidth", "pagination"));
|
||||
}
|
||||
render() {
|
||||
this.props.settings = BDFDB.ArrayUtils.is(this.props.settings) ? this.props.settings : [];
|
||||
|
|
|
@ -15,7 +15,7 @@ module.exports = (_ => {
|
|||
"name": "FriendNotifications",
|
||||
"author": "DevilBro",
|
||||
"version": "1.5.6",
|
||||
"description": "Get a notification when a Friend or a User you choose to observe changes their online status, can be configured individually in the settings"
|
||||
"description": "Get a notification when a Friend or a User, you choose to observe, changes their status"
|
||||
},
|
||||
"changeLog": {
|
||||
"improved": {
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
[patreon-badge]: https://img.shields.io/badge/Patreon-Support!-%23F96854.svg?logo=patreon&style=flat
|
||||
[patreon-link]: https://patreon.com/MircoWittrien
|
||||
|
||||
Get a notification when a Friend or a User you choose to observe changes their online status, can be configured individually in the settings
|
||||
Get a notification when a Friend or a User, you choose to observe, changes their status
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
- [Edit Users](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/EditUsers) - Allow you to change the icon, name, tag and color of users
|
||||
- [Emoji Statistics](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/EmojiStatistics) - Add some helpful options to show you more information about emojis and emojiservers
|
||||
- [Force Image Previews](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ForceImagePreviews) - Force embedded Image Previews, if Discord doesn't do it itself
|
||||
- [Friend Notifications](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/FriendNotifications) - Get a notification when a Friend or a User you choose to observe changing his online status, can be configured individually in the settings
|
||||
- [Friend Notifications](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/FriendNotifications) - Get a notification when a Friend or a User, you choose to observe, changes their status
|
||||
- [Google Search Replace](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/GoogleSearchReplace) - Replace the default Google Text Search with a selection menu of several search engines
|
||||
- [Google Translate Option](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/GoogleTranslateOption) - Add a Google Translate option to your context menu, which will open the selected text in Google Translate
|
||||
- [Hide Muted Categories](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/HideMutedCategories) - Hide muted categories the same way muted channels are hidden, when the server is set to hide muted channels
|
||||
|
|
Loading…
Reference in New Issue