File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,11 @@ module.exports = class Constants extends null {
11
11
'notes' ,
12
12
'roles/member-counts' ,
13
13
'member-ids' ,
14
- 'connections/configuration ' ,
14
+ 'connections/' ,
15
15
'users/@me/disable' ,
16
16
'users/@me/delete' ,
17
17
'users/@me/mfa' ,
18
18
'users/@me/phone' ,
19
- 'connections/eligibility' ,
20
19
'interaction-data' ,
21
20
'member-verification' ,
22
21
'cdn-cgi/challenge-platform' ,
Original file line number Diff line number Diff line change @@ -489,13 +489,16 @@ class DiscordBotClient {
489
489
} ;
490
490
}
491
491
492
- switch ( url ) {
493
- case 'https://checkout.paypal.com/web' :
494
- case 'https://discord.com/connections' :
495
- case 'https://ptb.discord.com/connections' :
496
- case 'https://canary.discord.com/connections' :
497
- case `https://localhost:${ this . port } /connections` :
498
- return { action : 'deny' } ;
492
+ if (
493
+ [
494
+ 'https://checkout.paypal.com/web' ,
495
+ 'https://discord.com/connections' ,
496
+ 'https://ptb.discord.com/connections' ,
497
+ 'https://canary.discord.com/connections' ,
498
+ `https://localhost:${ this . port } /connections` ,
499
+ ] . some ( ( e ) => url . includes ( e ) )
500
+ ) {
501
+ return { action : 'deny' } ;
499
502
}
500
503
501
504
try {
You can’t perform that action at this time.
0 commit comments