Skip to content

Commit ab58036

Browse files
committed
Fix bug in contact command
1 parent b345564 commit ab58036

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
# 2.13.6
8+
9+
### Fixed
10+
11+
Fixed a bug in the contact command where the response message did not send.
12+
713
# 2.13.5
814

915
### Added

cogs/modmail.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,11 @@ async def edit(self, ctx, message_id: Optional[int] = None,
602602
async def contact(self, ctx,
603603
category: Optional[discord.CategoryChannel] = None, *,
604604
user: Union[discord.Member, discord.User]):
605-
"""Create a thread with a specified member."""
605+
"""Create a thread with a specified member.
606+
607+
If the optional category argument is passed, the thread
608+
will be created in the specified category.
609+
"""
606610

607611
if user.bot:
608612
embed = discord.Embed(
@@ -622,6 +626,7 @@ async def contact(self, ctx,
622626
else:
623627
thread = self.bot.threads.create(user, creator=ctx.author,
624628
category=category)
629+
await thread.wait_until_ready()
625630
embed = discord.Embed(
626631
title='Created thread',
627632
description=f'Thread started in {thread.channel.mention} '

0 commit comments

Comments
 (0)