File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
import arrow
5
5
import discord
6
- import pydis_core
7
6
from pydis_core .utils import scheduling
8
7
from pydis_core .utils .channel import get_or_fetch_channel
9
8
@@ -46,7 +45,7 @@ def is_help_forum_post(channel: discord.abc.GuildChannel) -> bool:
46
45
async def _close_help_post (closed_post : discord .Thread , closing_reason : _stats .ClosingReason ) -> None :
47
46
"""Close the help post and record stats."""
48
47
# Get Thread with updated metadata (such as the title)
49
- closed_post = await pydis_core . utils . channel . get_or_fetch_channel (bot .instance , closed_post .id )
48
+ closed_post = await get_or_fetch_channel (bot .instance , closed_post .id )
50
49
51
50
embed = discord .Embed (description = CLOSED_POST_MSG )
52
51
embed .set_author (name = f"{ POST_TITLE } closed" , icon_url = CLOSED_POST_ICON_URL )
You can’t perform that action at this time.
0 commit comments