Chrissy
Explore posts from serversPPrisma
•Created by Chrissy on 8/10/2024 in #help-and-questions
Prisma-to-sql
Is it possible to convert smt like
model.findFirst({ ... }) to sql so i can combine it with a custom sql query?
Or make a .findFirst() with AND Query, where 1 query is RAW SQL?
4 replies
DIAdiscord.js - Imagine an app
•Created by Chrissy on 6/29/2024 in #djs-questions
discord.js polls seem to not work
7 replies
DIAdiscord.js - Imagine an app
•Created by Chrissy on 6/25/2024 in #djs-questions
Weird behaviour from pins, caused by discord.js
i'm trying to register message pin updates
I got it working functionally now, but i wondered why it's so "weird"
when you pin a message the following happens:
First an "MESSAGE_UPDATE" get's sent.
in the payload it even says that the messge is pinned/not pinned (updated)
Then an "CHANNEL_PINS_UPDATE" fires, which on djs get's emitted as ChannelPinsUpdate event.
However, why doesn't the messageUpdate event trigger?
I could simply do then (oldMessage.pinned !== newMessage.pinned) // got pinned/unpinned
Why do i have to do in the ChannelPinsUpdate find message via audit log from channel
this is what client.on raw sends
clearly a message update happend, with the new value of pinned even tho it "just got pinned"
But discordjs doesn't fire the messageUpdate event (only the channelPinsUpdate and GuildAuditLogEntryCreate event)
13 replies