piton
piton
Explore posts from servers
DTDrizzle Team
Created by piton on 4/3/2024 in #help
Empty default array
Im creating text array with empty array as default like this tags: text("tags").array().default([]), but when i do drizzlekit push:pg it gives the following changes but when applying the changes it errors out:
ALTER TABLE "users" ALTER COLUMN "favorites" SET DEFAULT ;
ALTER TABLE "files" ALTER COLUMN "tags" SET DATA TYPE text[];
ALTER TABLE "files" ALTER COLUMN "tags" SET DEFAULT ;
ALTER TABLE "users" ALTER COLUMN "favorites" SET DEFAULT ;
ALTER TABLE "files" ALTER COLUMN "tags" SET DATA TYPE text[];
ALTER TABLE "files" ALTER COLUMN "tags" SET DEFAULT ;
Error: error: syntax error at or near ";" position: 58 (which means at the end of the first query)
4 replies
DTDrizzle Team
Created by piton on 4/1/2024 in #help
Self-Relation in Drizzle ORM?
No description
5 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by piton on 2/19/2024 in #help
(Bug): Error synchronizing information when connection is resumed
Error: @Moonlink(Player) - cannot change volume while the player is not playing
at MoonlinkPlayer.setVolume (C:\Users\user\Desktop\Miona\node_modules\.pnpm\[email protected]\node_modules\moonlink.js\dist\src\@Entities\MoonlinkPlayer.js:262:19)
at Object.execute (C:\Users\user\Desktop\Miona\src\interactions\commands\music\volume.js:51:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.execute (C\Users\user\Desktop\Miona\src\events\InteractionCreate.js:46:17)
Error: @Moonlink(Player) - cannot change volume while the player is not playing
at MoonlinkPlayer.setVolume (C:\Users\user\Desktop\Miona\node_modules\.pnpm\[email protected]\node_modules\moonlink.js\dist\src\@Entities\MoonlinkPlayer.js:262:19)
at Object.execute (C:\Users\user\Desktop\Miona\src\interactions\commands\music\volume.js:51:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.execute (C\Users\user\Desktop\Miona\src\events\InteractionCreate.js:46:17)
This error pops up even though the player is playing music.
const player = interaction.client.moon.players.get(interaction.guild.id);
if(!player || !player.current) {
return interaction.followUp({embeds: [
new EmbedBuilder()
.setDescription(":011: | No music is playing.")
.setColor("#e8be99")
]})
}
const player = interaction.client.moon.players.get(interaction.guild.id);
if(!player || !player.current) {
return interaction.followUp({embeds: [
new EmbedBuilder()
.setDescription(":011: | No music is playing.")
.setColor("#e8be99")
]})
}
after this i do some other checks and then
await player.setVolume(volume)
await player.setVolume(volume)
and it throws the error right here. If it was my problem the first check should've stopped me from setting the volume but the player and player.current are set
165 replies
More events
I need an event that is triggered when settings change like, when loop mode changes, when the player is paused etc. Is that doable @1Lucas1.apk?
6 replies