This commit is contained in:
Mirco Wittrien 2022-02-11 14:57:36 +01:00
parent 1dfde3fd0e
commit 63856f3fb8
2 changed files with 4 additions and 3 deletions

View File

@ -303,6 +303,7 @@
"AvatarComponents": {"props": ["AnimatedAvatar"]},
"Badges": {"props": ["IconBadge", "NumberBadge"], "assign": true},
"CardRemoveButton": {"name": "RemoveButton"},
"ChannelTextAreaTypes": {"props": ["ChatInputTypes"], "value": "ChatInputTypes"},
"Checkmark": {"name": "Checkmark"},
"Connectors": {"props": ["Router", "Link"], "assign": true},
"DiscordTag": {"name": "DiscordTag"},

View File

@ -2,7 +2,7 @@
* @name EditUsers
* @author DevilBro
* @authorId 278543574059057154
* @version 4.4.6
* @version 4.4.7
* @description Allows you to locally edit Users
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -17,7 +17,7 @@ module.exports = (_ => {
"info": {
"name": "EditUsers",
"author": "DevilBro",
"version": "4.4.6",
"version": "4.4.7",
"description": "Allows you to locally edit Users"
}
};
@ -412,7 +412,7 @@ module.exports = (_ => {
}
processChannelEditorContainer (e) {
if (!e.instance.props.disabled && e.instance.props.channel && e.instance.props.channel.isDM() && e.instance.props.type == BDFDB.DiscordConstants.TextareaTypes.NORMAL && this.settings.places.chatTextarea) {
if (!e.instance.props.disabled && e.instance.props.channel && e.instance.props.channel.isDM() && e.instance.props.type == BDFDB.LibraryComponents.ChannelTextAreaTypes.NORMAL && this.settings.places.chatTextarea) {
let user = BDFDB.LibraryModules.UserStore.getUser(e.instance.props.channel.recipients[0]);
if (user) e.instance.props.placeholder = BDFDB.LanguageUtils.LanguageStringsFormat("TEXTAREA_PLACEHOLDER", `@${changedUsers[user.id] && changedUsers[user.id].name || user.username}`);
}