InvisibleChat: fix embeds missing decrypted content (#2655)
This commit is contained in:
parent
92ae62602b
commit
0e7570ad71
|
@ -133,10 +133,12 @@ export default definePlugin({
|
|||
message: message,
|
||||
channel: ChannelStore.getChannel(message.channel_id),
|
||||
onClick: async () => {
|
||||
await iteratePasswords(message).then((res: string | false) => {
|
||||
if (res) return void this.buildEmbed(message, res);
|
||||
return void buildDecModal({ message });
|
||||
});
|
||||
const res = await iteratePasswords(message);
|
||||
|
||||
if (res)
|
||||
this.buildEmbed(message, res);
|
||||
else
|
||||
buildDecModal({ message });
|
||||
}
|
||||
}
|
||||
: null;
|
||||
|
@ -169,9 +171,9 @@ export default definePlugin({
|
|||
|
||||
message.embeds.push({
|
||||
type: "rich",
|
||||
title: "Decrypted Message",
|
||||
rawTitle: "Decrypted Message",
|
||||
color: "0x45f5f5",
|
||||
description: revealed,
|
||||
rawDescription: revealed,
|
||||
footer: {
|
||||
text: "Made with ❤️ by c0dine and Sammy!",
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue