Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion intbot/core/bot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ async def wiki(ctx):
@bot.command()
async def close(ctx):
channel = ctx.channel
parent = channel.parent
author = ctx.message.author

# Check if it's a public or private post (thread)
if channel.type in (discord.ChannelType.public_thread, discord.ChannelType.private_thread):
parent = channel.parent

# Check if the post (thread) was sent in a forum,
# so we can add a tag
Expand Down
1 change: 0 additions & 1 deletion intbot/tests/test_bot/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ async def test_close_command_notworking():
# Mock context
ctx = AsyncMock()
ctx.channel = AsyncMock()
ctx.message.author = AsyncMock()

# Call the command
await close(ctx)
Expand Down