Androz2091 / Androz2091/discord-temp-channels

TypeError: parentChannel.options.childFormat is not a function

Ouverte
#55 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
110
Forks
24
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Trying to use the example shown in the README.md file, but I'm running into an error.

I updated some of the db stuff so it works with the latest version of quick.db, maybe that's the source of the error? I also added intents because thats what v13 needs.

When I start up the bot with a blank database (with temp-channels being set as an array already), it works just fine - set the main channel, join it, and it makes a temp channel. My error appears when I restart the bot, and try to join the hub channel again. It appears with: "TypeError: parentChannel.options.childFormat is not a function."

Odd though, if I delete the `channelData.options` in `tempChannels.registerChannel(channelData.channelID, channelData.options);`, it works *ok*, but it puts my id in the format `<@xxxxxxxxx>'s lounge`...

Can anyone help?
![B1AA6VEs](https://user-images.githubusercontent.com/71939973/203664237-b1a66738-7c60-45ff-b17e-daac2f03db13.png)

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.