Skip to content

Commit

Permalink
fix invite command not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Ballaual committed Apr 3, 2023
1 parent d892376 commit 35a715c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions commands/Bot/invite.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ module.exports = {
return interaction.reply({ content: "Missing `oauthv2Link` in .env", ephemeral: true })
}

if (!process.env.oauthv2link.startsWith("https://discord.com/")) {
if (!process.env.oauthv2Link.startsWith("https://discord.com/")) {
return interaction.reply({ content: "Please provide a valid OAuth2 link", ephemeral: true })
}

const embed = new EmbedBuilder()
.setTitle(`${interaction.client.user.username}'s invite link:`)
.setThumbnail(interaction.client.user.displayAvatarURL())
.setColor("#007BFF")
.setDescription(`My invite link is:\n${process.env.oauthv2Link}`)
.setDescription(`You can invite me with the following link:\n${process.env.oauthv2Link}`)

return interaction.reply({ embeds: [embed] })
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dicobo",
"version": "1.2.0",
"version": "1.2.1",
"description": "a discordbot written in discord.js v14 using (/) commands",
"main": "app.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "1.2.0",
"version": "1.2.1",
"note": "DO NOT EDIT this file, unless you know what you are doing here!"
}

0 comments on commit 35a715c

Please sign in to comment.