Make m->d Klipy links not produce error
This commit is contained in:
parent
2959fd8ae3
commit
59b5e05b33
1 changed files with 1 additions and 1 deletions
|
|
@ -785,7 +785,7 @@ async function messageToEvent(message, guild, options = {}, di) {
|
||||||
// Send Klipy GIFs in customised form
|
// Send Klipy GIFs in customised form
|
||||||
let isKlipyGIF = false
|
let isKlipyGIF = false
|
||||||
let isOnlyKlipyGIF = false
|
let isOnlyKlipyGIF = false
|
||||||
if (message.embeds?.length === 1 && message.embeds[0].provider?.name === "Klipy" && message.embeds[0].video?.url) {
|
if (message.content && message.embeds?.length === 1 && message.embeds[0].provider?.name === "Klipy" && message.embeds[0].video?.url) {
|
||||||
isKlipyGIF = true
|
isKlipyGIF = true
|
||||||
if (message.content.match(/^https?:\/\/klipy\.com[^ \n]+$/)) {
|
if (message.content.match(/^https?:\/\/klipy\.com[^ \n]+$/)) {
|
||||||
isOnlyKlipyGIF = true
|
isOnlyKlipyGIF = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue