( name: string, stack: string, )
| 300 | } |
| 301 | |
| 302 | export async function getUserByName( |
| 303 | name: string, |
| 304 | stack: string, |
| 305 | ): Promise<DBUser> { |
| 306 | const user = await findByName(name); |
| 307 | if (!user) throw new MonkeyError(404, "User not found", stack); |
| 308 | return migrateUser(user); |
| 309 | } |
| 310 | |
| 311 | export async function isDiscordIdAvailable( |
| 312 | discordId: string, |
nothing calls this directly
no test coverage detected