This commit is contained in:
2022-12-23 19:02:17 +01:00
parent ab93211be6
commit b29c82043e

View File

@@ -10,7 +10,7 @@ export default eventModule({
name: 'ready',
execute: async (client: Client) => {
const documents = await prisma.stick.findMany();
documents.forEach(async (document: stick) => {
documents.forEach(async (document) => {
const fetchguild = await client.guilds.fetch(document.guildid);
try {
await fetchguild.channels.fetch(document.channelid) as VoiceChannel