Do subreddit.load to load extra information

This commit is contained in:
Zeva Rose 2022-04-20 00:39:42 -06:00
parent 98e0c79791
commit 86db405b1a

View file

@ -63,6 +63,7 @@ class RedditCog(Scale):
try:
subreddit = await self.api.subreddit(name)
await subreddit.load()
except (NotFound, Forbidden) as e:
self.logger.debug(f"Subreddit {name} raised {e.__class__.__name__} on add")
await ctx.send("Subreddit may be private, quarantined, or nonexistent.", ephemeral=True)