various bug fixes
This commit is contained in:
@@ -60,5 +60,12 @@ export default defineEventHandler(async (event) => {
|
||||
});
|
||||
}
|
||||
|
||||
if (!server.participants.find((participant) => participant.id === event.context.user.id)) {
|
||||
throw createError({
|
||||
statusCode: 403,
|
||||
statusMessage: `Can't find participant with id "${event.context.params.id}" in guild with id "${event.context.params.id}"`,
|
||||
});
|
||||
}
|
||||
|
||||
return server;
|
||||
});
|
||||
Reference in New Issue
Block a user