Do subreddit.load to load extra information
This commit is contained in:
parent
98e0c79791
commit
86db405b1a
1 changed files with 1 additions and 0 deletions
|
@ -63,6 +63,7 @@ class RedditCog(Scale):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subreddit = await self.api.subreddit(name)
|
subreddit = await self.api.subreddit(name)
|
||||||
|
await subreddit.load()
|
||||||
except (NotFound, Forbidden) as e:
|
except (NotFound, Forbidden) as e:
|
||||||
self.logger.debug(f"Subreddit {name} raised {e.__class__.__name__} on add")
|
self.logger.debug(f"Subreddit {name} raised {e.__class__.__name__} on add")
|
||||||
await ctx.send("Subreddit may be private, quarantined, or nonexistent.", ephemeral=True)
|
await ctx.send("Subreddit may be private, quarantined, or nonexistent.", ephemeral=True)
|
||||||
|
|
Loading…
Add table
Reference in a new issue