mirror of
https://github.com/pieartsy/PluralFlux.git
synced 2026-04-16 17:45:28 +10:00
readded line i shouldn't have removed in sendMessageAsMember
This commit is contained in:
@@ -22,6 +22,9 @@ wh.sendMessageAsMember = async function(client, message) {
|
|||||||
// If the message does match a proxy but is not in a guild server (ex: in the Bot's DMs
|
// If the message does match a proxy but is not in a guild server (ex: in the Bot's DMs
|
||||||
if (!message.guildId) {
|
if (!message.guildId) {
|
||||||
throw new Error(enums.err.NOT_IN_SERVER);
|
throw new Error(enums.err.NOT_IN_SERVER);
|
||||||
|
}
|
||||||
|
if (proxyMatch.message === enums.misc.ATTACHMENT_SENT_BY) {
|
||||||
|
return await message.reply(`${enums.misc.ATTACHMENT_SENT_BY} ${proxyMatch.member.displayname ?? proxyMatch.member.name}`)
|
||||||
}
|
}
|
||||||
await wh.replaceMessage(client, message, proxyMatch.message, proxyMatch.member).catch(e =>{throw e});
|
await wh.replaceMessage(client, message, proxyMatch.message, proxyMatch.member).catch(e =>{throw e});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user