Skip to content

Commit

Permalink
Global .replace() (SudhanPlayz#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
DevAmiyo authored Jun 12, 2022
1 parent 1d644ce commit 94359c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/slash/invite.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const command = new SlashCommand()
.addComponents(new MessageButton()
.setLabel("Invite me")
.setStyle("LINK")
.setURL(`https://discord.com/oauth2/authorize?client_id=${client.config.clientId}&permissions=${client.config.permissions}&scope=${client.config.scopes.toString().replace(',', '%20')}`))
.setURL(`https://discord.com/oauth2/authorize?client_id=${client.config.clientId}&permissions=${client.config.permissions}&scope=${client.config.scopes.toString().replace(/,/g, '%20')}`))
]
});
});
Expand Down

0 comments on commit 94359c2

Please sign in to comment.