Squash missing guild error
This commit is contained in:
		
							parent
							
								
									26371ad47e
								
							
						
					
					
						commit
						19815358a1
					
				| @ -729,7 +729,7 @@ const functions = { | |||||||
| 			// Make sure guildInfo is what we expect, the watch channel isnt blank, and notifications are enabled
 | 			// Make sure guildInfo is what we expect, the watch channel isnt blank, and notifications are enabled
 | ||||||
| 			if (guildInfo instanceof GuildInfo && guildInfo.watchChannelId != "" && guildInfo.notificationsEnabled) { | 			if (guildInfo instanceof GuildInfo && guildInfo.watchChannelId != "" && guildInfo.notificationsEnabled) { | ||||||
| 				// Fetch the Guild
 | 				// Fetch the Guild
 | ||||||
| 				const guild = await client.guilds.fetch(guildInfo.guildId); | 				const guild = await client.guilds.fetch(guildInfo.guildId).catch(e => console.err("Attempted to fetch guild I'm no longer in.")); | ||||||
| 				// Fetch the Channel
 | 				// Fetch the Channel
 | ||||||
| 				const channel = await guild.channels.fetch(guildInfo.watchChannelId); | 				const channel = await guild.channels.fetch(guildInfo.watchChannelId); | ||||||
| 				// Create the filter function
 | 				// Create the filter function
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user