Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

Commit 0b599d9

Browse files
EEKIM10dragdev
authored andcommitted
Add timestamp to embed description
Signed-off-by: dragdev <samueljohnnicholson@gmail.com>
1 parent 6538a03 commit 0b599d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

riftgun/cog.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import json
2+
import sys
23
from typing import Optional, Union
34

45
import discord
5-
import sys
6-
76
import humanize
87
from discord.ext import commands
8+
99
from .converters import GlobalTextChannel
1010

1111

@@ -174,7 +174,8 @@ async def channel_info(self, ctx: commands.Context, *, channel: GlobalTextChanne
174174
title=f"Name: {channel.name}",
175175
description="ID: `{0.id}`\nGuild: {0.guild.name} (`{0.guild.id}`)\nCategory: {0.category}\n"
176176
"Slowmode: {0.slowmode_delay}\nNSFW: {1}\nCreated at: {2}".format(channel, nsfw, ago),
177-
color=channel.guild.owner.color
177+
color=channel.guild.owner.color,
178+
timestamp=channel.created_at
178179
)
179180
return await ctx.send(embed=e)
180181

0 commit comments

Comments
 (0)