Update CustomQuoter.plugin.js
This commit is contained in:
parent
799d3d424f
commit
cbc831bd58
|
@ -5,6 +5,7 @@ var CustomQuoter = (_ => {
|
|||
render() {
|
||||
let spoofChannel = new BDFDB.DiscordObjects.Channel({
|
||||
id: "126223823845647771",
|
||||
guild_id: "850725684241078788",
|
||||
name: "Test Channel"
|
||||
});
|
||||
let spoofQuotedMessage = new BDFDB.DiscordObjects.Message({
|
||||
|
@ -221,7 +222,7 @@ var CustomQuoter = (_ => {
|
|||
let unquotedLines = message.content.split("\n").filter(line => !line.startsWith("> "));
|
||||
unquotedLines = unquotedLines.slice(unquotedLines.findIndex(line => line.trim().length > 0)).join("\n");
|
||||
|
||||
let guild = channel.guild_id ? (BDFDB.LibraryModules.GuildStore.getGuild(channel.guild_id) || {id: "850725684241078788", name: "Test Server"}) : {id: "@me", name: BDFDB.LanguageUtils.LanguageStrings.DIRECT_MESSAGES};
|
||||
let guild = channel.guild_id ? (BDFDB.LibraryModules.GuildStore.getGuild(channel.guild_id) || {id: channel.guild_id, name: "Test Server"}) : {id: "@me", name: BDFDB.LanguageUtils.LanguageStrings.DIRECT_MESSAGES};
|
||||
|
||||
|
||||
return BDFDB.StringUtils.insertNRST(customQuote)
|
||||
|
|
Loading…
Reference in New Issue