mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
handle potential refactor
This commit is contained in:
@@ -145,7 +145,7 @@ export async function sendMessage(
|
|||||||
|
|
||||||
if (content.mentions) {
|
if (content.mentions) {
|
||||||
if (content.mentions.users?.length) {
|
if (content.mentions.users?.length) {
|
||||||
if (content.mentions.parse.includes("users")) {
|
if (content.mentions.parse?.includes("users")) {
|
||||||
content.mentions.parse = content.mentions.parse.filter((p) =>
|
content.mentions.parse = content.mentions.parse.filter((p) =>
|
||||||
p !== "users"
|
p !== "users"
|
||||||
);
|
);
|
||||||
@@ -157,7 +157,7 @@ export async function sendMessage(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (content.mentions.roles?.length) {
|
if (content.mentions.roles?.length) {
|
||||||
if (content.mentions.parse.includes("roles")) {
|
if (content.mentions.parse?.includes("roles")) {
|
||||||
content.mentions.parse = content.mentions.parse.filter((p) =>
|
content.mentions.parse = content.mentions.parse.filter((p) =>
|
||||||
p !== "roles"
|
p !== "roles"
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user