Improvements, changes and fixes (#611)

This commit is contained in:
Nuckyz 2023-03-19 04:53:00 -03:00 committed by GitHub
parent 5873bde6a6
commit 0fb79b763d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 105 additions and 71 deletions

View file

@ -321,9 +321,7 @@ export default definePlugin({
],
},
{
// The module wasn't being found, so lets just escape everything
// eslint-disable-next-line no-useless-escape
find: "\^https\:\/\/\(\?\:canary\.\|ptb\.\)\?discord.com\/channels\/\(\\\\\d\+\|",
find: "\"^/guild-stages/(\\\\d+)(?:/)?(\\\\d+)?\"",
replacement: {
// Make mentions of hidden channels work
match: /\i\.\i\.can\(\i\.\i\.VIEW_CHANNEL,\i\)/,