We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9b5ccc commit 7601746Copy full SHA for 7601746
1 file changed
discord_webhook/webhook.py
@@ -169,12 +169,14 @@ def set_url(self, url):
169
"""
170
self.url = url
171
172
- def set_timestamp(self, timestamp=str(datetime.datetime.utcfromtimestamp(time.time()))):
+ def set_timestamp(self, timestamp=None):
173
174
set timestamp of embed content
175
:param timestamp: (optional) timestamp of embed content
176
177
- self.timestamp = timestamp
+ if timestamp is None:
178
+ timestamp = time.time()
179
+ self.timestamp = str(datetime.datetime.utcfromtimestamp(timestamp))
180
181
def set_color(self, color):
182
0 commit comments