mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Add correct Discord Guild ID
This commit is contained in:
parent
24fb8f2b7d
commit
0c98097abc
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
import * as m from 'paraglide/messages'
|
||||
import { DISCORD_DONATOR_ID } from 'astro:env/server'
|
||||
import { DISCORD_DONATOR_ID, DISCORD_GUILD_ID } from 'astro:env/server'
|
||||
import prismaClient from 'utils/prisma-client'
|
||||
|
||||
const { session, user, roles } = Astro.locals
|
||||
|
|
@ -22,7 +22,7 @@ async function getMessage() {
|
|||
return m.discordNeeded()
|
||||
}
|
||||
|
||||
const memberInfoRes = await fetch(`https://discord.com/api/users/@me/guilds/535484312124915714/member`, {
|
||||
const memberInfoRes = await fetch(`https://discord.com/api/users/@me/guilds/${DISCORD_GUILD_ID}/member`, {
|
||||
headers: {
|
||||
Authorization: `Bearer ${discordAcc.accessToken}`,
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue