codePreviews: suppress embeds
This commit is contained in:
parent
fa91219714
commit
e8b4ffe358
1 changed files with 4 additions and 2 deletions
|
@ -90,8 +90,9 @@ events.add("messageCreate", "codePreviews", async function (msg) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (out !== "")
|
if (out !== "") {
|
||||||
msg.channel.createMessage({
|
await msg.edit({flags: 1 << 2});
|
||||||
|
await msg.channel.createMessage({
|
||||||
content: out,
|
content: out,
|
||||||
allowedMentions: {
|
allowedMentions: {
|
||||||
repliedUser: false,
|
repliedUser: false,
|
||||||
|
@ -100,4 +101,5 @@ events.add("messageCreate", "codePreviews", async function (msg) {
|
||||||
messageID: msg.id,
|
messageID: msg.id,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue