aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/help_channels/_channel.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/help_channels/_channel.py b/bot/exts/help_channels/_channel.py
index 9cf95e254..9d76adf65 100644
--- a/bot/exts/help_channels/_channel.py
+++ b/bot/exts/help_channels/_channel.py
@@ -3,7 +3,6 @@ from datetime import timedelta
import arrow
import discord
-import pydis_core
from pydis_core.utils import scheduling
from pydis_core.utils.channel import get_or_fetch_channel
@@ -46,7 +45,7 @@ def is_help_forum_post(channel: discord.abc.GuildChannel) -> bool:
async def _close_help_post(closed_post: discord.Thread, closing_reason: _stats.ClosingReason) -> None:
"""Close the help post and record stats."""
# Get Thread with updated metadata (such as the title)
- closed_post = await pydis_core.utils.channel.get_or_fetch_channel(bot.instance, closed_post.id)
+ closed_post = await get_or_fetch_channel(bot.instance, closed_post.id)
embed = discord.Embed(description=CLOSED_POST_MSG)
embed.set_author(name=f"{POST_TITLE} closed", icon_url=CLOSED_POST_ICON_URL)