mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Add debug details to Discord API errors
This commit is contained in:
parent
210118bf4d
commit
24fb8f2b7d
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ async function getMessage() {
|
|||
const { message, retry_after }: { message: string; retry_after: number } = await memberInfoRes.json()
|
||||
return m.discordRateLimit({ message, retry_after })
|
||||
} else if (memberInfoRes.status != 200) {
|
||||
return m.errorDonatorCheck
|
||||
return m.errorDonatorCheck({ error: await memberInfoRes.json() })
|
||||
}
|
||||
|
||||
const memberInfo: { roles: string[] } = await memberInfoRes.json()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue