You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"DISCORD_APP_ID is required. Visit https://discord.com/developers/applications -> Your bot -> General information -> Application ID. Required in .env.local",
13
+
})
14
+
.min(
15
+
1,
16
+
"DISCORD_APP_ID is required. Visit https://discord.com/developers/applications -> Your bot -> General information -> Application ID. Required in .env.local"
17
+
),
18
+
DISCORD_BOT_TOKEN: z
19
+
.string({
20
+
required_error:
21
+
"DISCORD_BOT_TOKEN is required. Visit https://discord.com/developers/applications -> Bot -> Token. This variable used only for register commands. Required in .env.local",
22
+
})
23
+
.min(
24
+
1,
25
+
"DISCORD_BOT_TOKEN is required. Visit https://discord.com/developers/applications -> Bot -> Token. This variable used only for register commands. Required in .env.local"
content: `Click this link to add NextBot to your server: https://discord.com/api/oauth2/authorize?client_id=${process.env.DISCORD_APP_ID}&permissions=2147485696&scope=bot%20applications.commands`,
60
+
content: `Click this link to add NextBot to your server: https://discord.com/api/oauth2/authorize?client_id=${env.DISCORD_APP_ID}&permissions=2147485696&scope=bot%20applications.commands`,
64
61
flags: MessageFlags.Ephemeral,
65
62
},
66
63
})
@@ -89,29 +86,6 @@ export async function POST(request: Request) {
0 commit comments