We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 880bd2b commit 056176eCopy full SHA for 056176e
src/utils/youtube/fetchLatestUploads.ts
@@ -57,7 +57,7 @@ export default async function fetchLatestUploads() {
57
for (const guild of discordGuildsToUpdate) {
58
try {
59
const channelObj = await client.channels.fetch(guild.guild_channel_id);
60
- if (!channelObj || channelObj.type !== ChannelType.GuildText) {
+ if (!channelObj || (channelObj.type !== ChannelType.GuildText && channelObj.type !== ChannelType.GuildAnnouncement)) {
61
console.error("Invalid channel or not a text channel in fetchLatestUploads");
62
continue;
63
}
0 commit comments