Skip to content

Commit c3ffa8c

Browse files
committed
Consistant info embed color
1 parent 1b2c08f commit c3ffa8c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
## How does it work?
2828

2929

30-
<img src='https://i.imgur.com/aHtn4C5.png' align='right' height=140>
30+
<img src='https://i.imgur.com/aHtn4C5.png' align='right' height=130>
3131

3232
When a user sends a direct message to the bot, a channel is created within an isolated category. This channel is where messages will be relayed. To reply to a message, simply use the command `reply` in the channel. See a full list of commands [below](#commands).
3333

3434
## What it looks like
3535

36-
![a](https://i.imgur.com/LZCHeaR.jpg)
36+
<img src='https://i.imgur.com/LZCHeaR.jpg' height=500>
3737

3838
<h1 align="center"><a href="https://github.com/kyb3r/modmail/wiki/Installation">Installation</a></h1>
3939

core/thread.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,14 @@ async def create(self, recipient, *, creator=None):
221221

222222
thread.channel = channel
223223

224-
log_url, log_data, dc = await asyncio.gather(
224+
log_url, log_data = await asyncio.gather(
225225
self.bot.modmail_api.get_log_url(recipient, channel, creator or recipient),
226-
self.bot.modmail_api.get_user_logs(recipient.id),
227-
self.get_dominant_color(recipient.avatar_url)
226+
self.bot.modmail_api.get_user_logs(recipient.id)
227+
# self.get_dominant_color(recipient.avatar_url)
228228
)
229229

230230
log_count = sum(1 for log in log_data if not log['open'])
231-
info_embed = self._format_info_embed(recipient, creator, log_url, log_count, dc)
231+
info_embed = self._format_info_embed(recipient, creator, log_url, log_count, 0x00ffff)
232232

233233
topic = f'User ID: {recipient.id}'
234234
mention = self.bot.config.get('mention', '@here') if not creator else None

0 commit comments

Comments
 (0)