entropy
entropy
Explore posts from servers
DTDrizzle Team
Created by entropy on 10/11/2024 in #help
Drizzle kit push and migrate don't match typescript schema
hey!!
9 replies
DTDrizzle Team
Created by entropy on 10/11/2024 in #help
Drizzle kit push and migrate don't match typescript schema
I just realized that.... thanks for catching my extremely dumb mistake tho!
9 replies
DTDrizzle Team
Created by entropy on 10/11/2024 in #help
Drizzle kit push and migrate don't match typescript schema
I've already tried dropping my table, creating a new docker container on a new volume, and deleting all migrations and none of that worked
9 replies
DTDrizzle Team
Created by entropy on 10/11/2024 in #help
Drizzle kit push and migrate don't match typescript schema
the weird part is that I can update a column type like number from integer to number and it works fine
9 replies
DIAdiscord.js - Imagine an app
Created by sproj003 ♿ on 1/17/2024 in #djs-questions
get application commands
Routes is just a wrapper around all the discord api endpoints. If you hover over the applicationsCommands method, it will show you what endpoint it wraps for each HTTP method. With that you can read the Discord api documentation for those routes and figure what it returns. Guild Specific: https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands Global: https://discord.com/developers/docs/interactions/application-commands#get-global-application-command
11 replies
DIAdiscord.js - Imagine an app
Created by JoelHCraft on 12/13/2023 in #djs-questions
Embed editting
I believe @polarwolvinny ❄ 🌈 is saying to do something like this:
const newEmbed = new EmbedBuilder(test.embeds[0].toJSON()).setDescription('new description')
buttonInteraction.update({ embeds: [newEmbed] })
const newEmbed = new EmbedBuilder(test.embeds[0].toJSON()).setDescription('new description')
buttonInteraction.update({ embeds: [newEmbed] })
19 replies
TtRPC
Created by entropy on 5/25/2023 in #❓-help
Issue with trpc fetch when trying to pass Clerk auth to context
hmmm and sorry to ask again, but if you did auth() in your server components it returns the correct info?
53 replies
TtRPC
Created by entropy on 5/25/2023 in #❓-help
Issue with trpc fetch when trying to pass Clerk auth to context
I'm curious if you did const auth = getAuth(opt.req) and then just logged auth what that returns.
53 replies
TtRPC
Created by entropy on 5/25/2023 in #❓-help
Issue with trpc fetch when trying to pass Clerk auth to context
Let me check to see really quick this was from a while ago when I was testing for a tech stack, but decided to not go with tRPC or Clerk
53 replies
TtRPC
Created by entropy on 5/25/2023 in #❓-help
Issue with trpc fetch when trying to pass Clerk auth to context
no clue just the first thing I found sorry
53 replies
TtRPC
Created by entropy on 5/25/2023 in #❓-help
Issue with trpc fetch when trying to pass Clerk auth to context
Uh I mean really depends on what you need but I would say compared to Clerk that next-auth is a bit harder to setup. I found this github really quickly if you want to take a peak at their implementation. Otherwise I would wait for someone more knowledgeable to help out. https://github.com/solaldunckel/next-13-app-router-with-trpc
53 replies
TtRPC
Created by entropy on 5/25/2023 in #❓-help
Issue with trpc fetch when trying to pass Clerk auth to context
and in the application code you can get the session, but just not on your tRPC context?
53 replies
TtRPC
Created by entropy on 5/25/2023 in #❓-help
Issue with trpc fetch when trying to pass Clerk auth to context
Is that after you go through the sign in flow?
53 replies
TtRPC
Created by entropy on 5/25/2023 in #❓-help
Issue with trpc fetch when trying to pass Clerk auth to context
also it's redundant to have the / and /api/(.*) routes in your publicRoutes since the matcher already prevents the middleware from running on those routes.
53 replies
TtRPC
Created by entropy on 5/25/2023 in #❓-help
Issue with trpc fetch when trying to pass Clerk auth to context
They actually have a guide that can help you setup tRPC with Clerk here that I'd recommend following. https://clerk.com/docs/references/nextjs/trpc
53 replies
TtRPC
Created by entropy on 5/25/2023 in #❓-help
Issue with trpc fetch when trying to pass Clerk auth to context
you just need to add your api to your public routes on the Clerk middleware so:
export default authMiddleware({
publicRoutes: ["<YOUR API ENDPOINT>"]
})
export default authMiddleware({
publicRoutes: ["<YOUR API ENDPOINT>"]
})
Though if you are following the Clerk docs and use the matcher they have it should prevent your middleware from running on /trpc or /api endpoints
export const config = {
matcher: ['/((?!.+\\.[\\w]+$|_next).*)', '/', '/(api|trpc)(.*)'],
}
export const config = {
matcher: ['/((?!.+\\.[\\w]+$|_next).*)', '/', '/(api|trpc)(.*)'],
}
53 replies
DIAdiscord.js - Imagine an app
Created by Jimmy_DB on 9/5/2023 in #djs-questions
connect two commands
Is that correct?
13 replies
DIAdiscord.js - Imagine an app
Created by Jimmy_DB on 9/5/2023 in #djs-questions
connect two commands
Based on what you said originally it sounds like you want to be able to generate an image and then generate a video with one command, while preserving the two seprate commands.
13 replies
DIAdiscord.js - Imagine an app
Created by Jimmy_DB on 9/5/2023 in #djs-questions
connect two commands
So you could create a command that has two args for width and height, which then returns an output of the area. /area <width> <height>
13 replies
DIAdiscord.js - Imagine an app
Created by SorNion on 9/4/2023 in #djs-questions
The bot does not read the command although it does appear in the slash bar
62 replies