M
M
Maxim2021-08-26 13:33:36
Python
Maxim, 2021-08-26 13:33:36

How to highlight registration or authorization date in discord.py bot?

61276cee70f73857234921.jpeg

How can I do the same but in my Python bot?
I wanted to use datetime, but I like this way more, and there is no Russian language in datetime. Help me please.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2021-08-26
@D0ulink

to display the date/time in this way, you need to use special "tags" for formatting messages, the full list is in the documentation:
https://discord.com/developers/docs/reference#mess...
The "tag" is inserted into the message, after sending it converted to the required data.
specifically for your case, you need to use <t:unix_timestamp:D>
get Unix Timestamp for a specific date, you can either on a special site , or directly in the code .
the end result should be something like this:
6127c1ad2a4bc039254588.png

U
UberPool, 2021-08-26
@UberPool

When entering the server, add the user to the database.
Event when entering the server on_member_join.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question