Merge branch 'dev' into immediate-finds
This commit is contained in:
commit
b17963169f
1
.npmrc
1
.npmrc
|
@ -1 +1,2 @@
|
||||||
strict-peer-dependencies=false
|
strict-peer-dependencies=false
|
||||||
|
package-manager-strict=false
|
||||||
|
|
|
@ -227,10 +227,8 @@ function MessageEmbedAccessory({ message }: { message: Message; }) {
|
||||||
|
|
||||||
const accessories = [] as (JSX.Element | null)[];
|
const accessories = [] as (JSX.Element | null)[];
|
||||||
|
|
||||||
let match = null as RegExpMatchArray | null;
|
for (const [_, channelID, messageID] of message.content!.matchAll(messageLinkRegex)) {
|
||||||
while ((match = messageLinkRegex.exec(message.content!)) !== null) {
|
if (embeddedBy.includes(messageID) || embeddedBy.length > 2) {
|
||||||
const [_, channelID, messageID] = match;
|
|
||||||
if (embeddedBy.includes(messageID)) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue