Skip to content

Commit 1340d73

Browse files
committed
Added changelog for v3.2.3-pre and slighty changed contact logic
1 parent 9c000f3 commit 1340d73

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66
This project mostly adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html);
77
however, insignificant breaking changes does not guarantee a major version bump, see the reasoning [here](https://github.com/kyb3r/modmail/issues/319).
88

9+
10+
# [UNRELEASED]
11+
12+
### Changed
13+
14+
- `?contact` no longer send the "thread created" message to where the command is ran, instead, it's now sent to the newly created thread channel. (Thanks to DAzVise)
15+
916
# v3.2.2
1017

1118
Security update!

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "3.2.2"
1+
__version__ = "3.2.3-pre"
22

33
import asyncio
44
import logging

cogs/modmail.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -886,24 +886,21 @@ async def contact(
886886
description="A thread for this user already "
887887
f"exists in {exists.channel.mention}.",
888888
)
889+
await ctx.channel.send(embed=embed)
889890

890891
else:
891892
thread = self.bot.threads.create(
892893
user, creator=ctx.author, category=category
893894
)
894-
await thread.wait_until_ready()
895895
embed = discord.Embed(
896-
title="Created thread",
896+
title="Created Thread",
897897
description=f"Thread started by {ctx.author.mention} "
898898
f"for {user.mention}.",
899899
color=self.bot.main_color,
900900
)
901-
902-
try:
901+
await thread.wait_until_ready()
903902
await thread.channel.send(embed=embed)
904-
except:
905-
await ctx.send(embed=embed)
906-
await ctx.message.delete()
903+
await ctx.message.delete()
907904

908905
@commands.group(invoke_without_command=True)
909906
@checks.has_permissions(PermissionLevel.MODERATOR)

0 commit comments

Comments
 (0)