Logan
08/04/2022, 11:15 AMpanelChannelId
is null
, when console logging the value which I am trying to insert, it returns a string. So I'm unsure why it is not putting the data into my db..
I also tried hard coding a value for the panelChannelId
key, and it still appears as null.
await self.client.prisma.serververification.create(data={
"guildId": str(interaction.guild.id),
"enabled": True,
"logChannelId": None,
"panelMessageId": str(panel_message.id),
"panelChannelId": str(verification_channel.id),
"verifiedRoleId": str(verification_role.id),
})
model serververification {
id Int @id @default(autoincrement())
guildId String @db.VarChar(20)
enabled Boolean @db.Bit(1)
logChannelId String? @db.VarChar(20)
panelMessageId String? @db.VarChar(20)
panelChannelId String? @db.VarChar(20)
verifiedRoleId String? @db.VarChar(20)
@@index([guildId], map: "guildId_fkey")
}
Nurul
08/04/2022, 11:45 AMprisma-client-py
repository would be an ideal place to ask questions related to the Prisma Python Client.
@Robert Craigie might be able to help you out here.Logan
08/04/2022, 11:46 AMRobert Craigie
08/07/2022, 11:49 AM