Update CustomQuoter.plugin.js
This commit is contained in:
parent
2a0a3e0b6a
commit
e3f85be1f6
|
@ -367,7 +367,7 @@ module.exports = (_ => {
|
|||
BDFDB.LibraryRequires.electron.clipboard.write({text: text});
|
||||
BDFDB.NotificationUtils.toast(this.labels.toast_quotecopied, {type: "success"});
|
||||
}
|
||||
else BDFDB.LibraryModules.DispatchUtils.ComponentDispatch.dispatchToLastSubscribed(BDFDB.DiscordConstants.ComponentActions.INSERT_TEXT, {content: [ChannelTextAreaForm && ChannelTextAreaForm.state.textValue && "\n", text].filter(n => n).join("")});
|
||||
else BDFDB.LibraryModules.DispatchUtils.ComponentDispatch.dispatchToLastSubscribed(BDFDB.DiscordConstants.ComponentActions.INSERT_TEXT, {content: [ChannelTextAreaForm && ChannelTextAreaForm.state.textValue && !ChannelTextAreaForm.state.textValue.endsWith("\n") && "\n", text].filter(n => n).join("")});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue