feldrok
feldrok
Explore posts from servers
DIdiscord.js - Imagine ❄
Created by feldrok on 11/25/2024 in #djs-questions
Property 'voice' does not exist on type 'GuildMember | APIInteractionGuildMember'.
I have google quite a lot regarding this but can't seem to find the best solution
8 replies
DIdiscord.js - Imagine ❄
Created by feldrok on 11/25/2024 in #djs-questions
Property 'voice' does not exist on type 'GuildMember | APIInteractionGuildMember'.
as it says cached, how can i make sure this is updated data?
8 replies
DIdiscord.js - Imagine ❄
Created by feldrok on 11/25/2024 in #djs-questions
Property 'voice' does not exist on type 'GuildMember | APIInteractionGuildMember'.
is there a better way to accessing the current user's voice channel active members?
8 replies
TTCTheo's Typesafe Cult
Created by feldrok on 10/16/2024 in #questions
Uploadthing Delete Files
{"message":"Failed to request UploadThing API (400)","logLevel":"ERROR","timestamp":"2024-10-16T04:08:28.535Z","annotations":{"response":{"_id":"@effect/platform/HttpClientResponse","request":{"_id":"@effect/platform/HttpClientRequest","method":"POST","url":"https://api.uploadthing.com/v6/deleteFiles","urlParams":[],"hash":{"_id":"Option","_tag":"None"},"headers":{"content-type":"application/json","content-length":"888416","x-uploadthing-version":"7.1.0","x-uploadthing-be-adapter":"server-sdk","x-uploadthing-api-key":"xx","b3":"xx","traceparent":"00-ac1748f7c8d5387b42008b683c2beeb2"},"body":{"_id":"@effect/platform/HttpBody","_tag":"Uint8Array","body":"{\"fileKeys\":[\"S3NUJszt9cEpo0fqIqCiQCRPDxlaIc8F9MpZS4uNwGr0Jg3e\",\"S3NUJszt9cEpiVWd2JsMoK3mjplcaAYBwd49tQqn8EyP0xZT\",\"S3NUJszt9cEp8RxwogaUItnwQOfDLFuvqi3JpAgk9r1mc7la\",
{"message":"Failed to request UploadThing API (400)","logLevel":"ERROR","timestamp":"2024-10-16T04:08:28.535Z","annotations":{"response":{"_id":"@effect/platform/HttpClientResponse","request":{"_id":"@effect/platform/HttpClientRequest","method":"POST","url":"https://api.uploadthing.com/v6/deleteFiles","urlParams":[],"hash":{"_id":"Option","_tag":"None"},"headers":{"content-type":"application/json","content-length":"888416","x-uploadthing-version":"7.1.0","x-uploadthing-be-adapter":"server-sdk","x-uploadthing-api-key":"xx","b3":"xx","traceparent":"00-ac1748f7c8d5387b42008b683c2beeb2"},"body":{"_id":"@effect/platform/HttpBody","_tag":"Uint8Array","body":"{\"fileKeys\":[\"S3NUJszt9cEpo0fqIqCiQCRPDxlaIc8F9MpZS4uNwGr0Jg3e\",\"S3NUJszt9cEpiVWd2JsMoK3mjplcaAYBwd49tQqn8EyP0xZT\",\"S3NUJszt9cEp8RxwogaUItnwQOfDLFuvqi3JpAgk9r1mc7la\",
3 replies
TTCTheo's Typesafe Cult
Created by j0e on 2/1/2024 in #questions
Compressing images before uploading to UploadThing?
I would like to know this too
9 replies
DTDrizzle Team
Created by amgau on 5/15/2024 in #help
Having an issue with sqlite running `drizzle-kit generate`.
Hi, i'm having the same problem on an expo project... can't find anything to solve it, have changed several versions to no avail
3 replies
TTCTheo's Typesafe Cult
Created by feldrok on 12/8/2023 in #questions
T3 Upgrade app
I can't find any guides on this, and the readme is not really clear on how to set it up
3 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
Still can't figure this out 😦
123 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
I need to do this too
123 replies
TTCTheo's Typesafe Cult
Created by Deniz on 5/9/2023 in #questions
create t3 app for nextjs 13.4 app dir
im hoping for a guide on how to upgrade from pages to appdir
6 replies
TTCTheo's Typesafe Cult
Created by feldrok on 3/15/2023 in #questions
tRPC API endpoints?
you are right, fixed that
16 replies
TTCTheo's Typesafe Cult
Created by feldrok on 3/15/2023 in #questions
tRPC API endpoints?
i understand, but why getting this when i define the output? i dont get where that is coming from
16 replies
TTCTheo's Typesafe Cult
Created by feldrok on 3/15/2023 in #questions
tRPC API endpoints?
i get this when not passing .output()
16 replies
TTCTheo's Typesafe Cult
Created by feldrok on 3/15/2023 in #questions
tRPC API endpoints?
16 replies
TTCTheo's Typesafe Cult
Created by feldrok on 3/15/2023 in #questions
tRPC API endpoints?
even though its succesfully posting
16 replies
TTCTheo's Typesafe Cult
Created by feldrok on 3/15/2023 in #questions
tRPC API endpoints?
16 replies
TTCTheo's Typesafe Cult
Created by feldrok on 3/15/2023 in #questions
tRPC API endpoints?
import { createTRPCRouter, protectedProcedure, publicProcedure, } from "~/server/api/trpc"; import bcryptjs from "bcryptjs"; import { z } from "zod"; export const userRouter = createTRPCRouter({ create: publicProcedure .meta({ openapi: { method: "POST", path: "/test/create" } }) .input( z.object({ rut: z.string(), name: z.string(), paternallastname: z.string(), maternallastname: z.string(), email: z.string(), phone: z.string(), address: z.string(), district: z.string(), password: z.string(), }) ) .output( z.object({ message: z.string(), person: z.object({ id: z.number(), rut: z.string(), name: z.string(), paternallastname: z.string(), maternallastname: z.string(), email: z.string(), phone: z.string(), address: z.string(), district: z.string(), }), user: z.object({ id: z.number(), person_id: z.number(), hash: z.string(), }), }) ) .query(async ({ ctx, input }) => { const newPerson = await ctx.prisma.person.create({ data: { rut: input.rut, name: input.name, paternallastname: input.paternallastname, maternallastname: input.maternallastname, email: input.email, phone: input.phone, address: input.address, district: input.district, }, }); const hashedPassword = bcryptjs.hashSync(input.password, 10); const newUser = await ctx.prisma.user.create({ data: { person_id: newPerson.id, hash: hashedPassword, }, }); return { message: "User created", person: newPerson, user: newUser, }; }), });
16 replies
TTCTheo's Typesafe Cult
Created by feldrok on 3/15/2023 in #questions
tRPC API endpoints?
thanks, i've done something at it's "working"
16 replies
TTCTheo's Typesafe Cult
Created by feldrok on 3/9/2023 in #questions
Error after clean setup of T3-TURBO-CLERK
Thanks for your swift answer James, nice to meet you, I'll try to open a github issue in a few days when I get back home, thanks again.
4 replies