diff --git a/structures/phone/PhoneCall.js b/structures/phone/PhoneCall.js index 95f16b24..5087175d 100644 --- a/structures/phone/PhoneCall.js +++ b/structures/phone/PhoneCall.js @@ -1,5 +1,5 @@ const { shorten, verify } = require('../../util/Util'); -const inviteRegex = /discord(\.gg|app\.com\/invite|\.me)\//gi; +const inviteRegex = /(https?:\/\/)?(www\.|canary\.|ptb\.)?discord(\.gg|app\.com\/invite|\.me)\/([^ ]+)\/?/gi; module.exports = class PhoneCall { constructor(client, origin, recipient) {