10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab6e005 commit 64bcafdCopy full SHA for 64bcafd
intbot/core/bot/main.py
@@ -41,11 +41,11 @@ async def wiki(ctx):
41
@bot.command()
42
async def close(ctx):
43
channel = ctx.channel
44
- parent = channel.parent
45
author = ctx.message.author
46
47
# Check if it's a public or private post (thread)
48
if channel.type in (discord.ChannelType.public_thread, discord.ChannelType.private_thread):
+ parent = channel.parent
49
50
# Check if the post (thread) was sent in a forum,
51
# so we can add a tag
intbot/tests/test_bot/test_main.py
@@ -123,7 +123,6 @@ async def test_close_command_notworking():
123
# Mock context
124
ctx = AsyncMock()
125
ctx.channel = AsyncMock()
126
- ctx.message.author = AsyncMock()
127
128
# Call the command
129
await close(ctx)
0 commit comments