aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/reddit.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/exts/evergreen/reddit.py')
-rw-r--r--bot/exts/evergreen/reddit.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/evergreen/reddit.py b/bot/exts/evergreen/reddit.py
index f2b95fe2..bda155c3 100644
--- a/bot/exts/evergreen/reddit.py
+++ b/bot/exts/evergreen/reddit.py
@@ -3,7 +3,6 @@ import random
import discord
from discord.ext import commands
-from discord.ext.commands.cooldowns import BucketType
from bot.bot import Bot
from bot.utils.pagination import ImagePaginator
@@ -31,7 +30,7 @@ class Reddit(commands.Cog):
return await response.json()
@commands.command(name="reddit")
- @commands.cooldown(1, 10, BucketType.user)
+ @commands.cooldown(1, 10, commands.BucketType.user)
async def get_reddit(self, ctx: commands.Context, subreddit: str = "python", sort: str = "hot") -> None:
"""
Fetch reddit posts by using this command.