make MarkDown into a class and fixed emojis
This commit is contained in:
parent
36fc3fecc2
commit
ec5b86b276
12 changed files with 957 additions and 848 deletions
|
@ -3,7 +3,6 @@ import { Message } from "./message.js";
|
|||
import { Voice } from "./audio.js";
|
||||
import { Contextmenu } from "./contextmenu.js";
|
||||
import { Fullscreen } from "./fullscreen.js";
|
||||
import { markdown } from "./markdown.js";
|
||||
import { Permissions } from "./permissions.js";
|
||||
import { Settings, RoleList } from "./settings.js";
|
||||
import { InfiniteScroller } from "./infiniteScroller.js";
|
||||
|
@ -745,10 +744,10 @@ class Channel {
|
|||
if (!("Notification" in window)) {
|
||||
}
|
||||
else if (Notification.permission === "granted") {
|
||||
let noticontent = markdown(message.content).textContent;
|
||||
let noticontent = message.content.textContent;
|
||||
if (message.embeds[0]) {
|
||||
noticontent ||= message.embeds[0].json.title;
|
||||
noticontent ||= markdown(message.embeds[0].json.description).textContent;
|
||||
noticontent ||= message.content.textContent;
|
||||
}
|
||||
noticontent ||= "Blank Message";
|
||||
let imgurl = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue