Skip to content

Commit 7876270

Browse files
committed
Improve formatting slightly
1 parent 0a02385 commit 7876270

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

core/thread.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ async def _close(self, closer, silent=False, delete_channel=True,
134134
em = discord.Embed(title='Thread Closed', color=discord.Color.red())
135135
em.description = message or \
136136
f'{closer.mention} has closed this Modmail thread.'
137+
em.set_footer(text='Replying will create a new thread', icon_url=self.bot.guild.icon_url)
138+
em.timestamp = datetime.datetime.utcnow()
137139

138140
if not silent and self.recipient is not None:
139141
tasks.append(self.recipient.send(embed=em))
@@ -416,14 +418,16 @@ async def _find_from_channel(self, channel):
416418
async def create(self, recipient, *, creator=None, category=None):
417419
"""Creates a Modmail thread"""
418420

419-
em = discord.Embed(
420-
title='Thread created!',
421-
description=self.bot.config.get(
421+
thread_creation_response = self.bot.config.get(
422422
'thread_creation_response',
423423
'The moderation team will get back to you as soon as possible!'
424-
),
425-
color=discord.Color.green()
426-
)
424+
)
425+
426+
em = discord.Embed(color=self.bot.mod_color)
427+
em.description = thread_creation_response
428+
em.title = 'Thread Created'
429+
em.timestamp = datetime.datetime.utcnow()
430+
em.set_footer(text='Your message has been sent', icon_url=self.bot.guild.icon_url)
427431

428432
if creator is None:
429433
self.bot.loop.create_task(recipient.send(embed=em))

0 commit comments

Comments
 (0)