About Specifications and Issues #36
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
about Specifications
Why is there a mix of specifications up to 1.7 and use of 2.0?
Example:
about Issues
We can't make an issue unless we use a special method.
Can not:
1, Go to Issues tab
2, Click "New issue" button
Can:
Access the link to create an new issue.
(https://github.com/iDevision/enhanced-discord.py/issues/new)
They are branches. 2.0 is the only maintained branch.
That's a github/browser bug. I am able to create issues just fine.
The 1.7 and 2.0 mentioned here are from Discord.py. My apologies.
What I want to ask is why there is a mix of User.avatar_url, which is the spec up to 1.7 of discord.py, and datatime type aware, which is the spec from 2.0 of discord.py.
If this is the case, people who want to migrate from discord.py may have to rewrite the code.
What do you think about this?
I think it's not github's bug.
I think you can recreate it this way:
Selecting "Ask a question" will take you to the Discussions tab of the original Discord.py.
Selecting "Discord Server" will take you to the original Discord.py's official server invite link.
I don't know if this is correct because I don't know much about Github, but I think it has something to do with the files in this folder(https://github.com/iDevision/enhanced-discord.py/tree/master/.github/ISSUE_TEMPLATE).
(I'm not a native speaker, so I use the DeepL translator. Sorry.)
Where exactly do you see the mix ? In the online docs ? Because the 2.0 branch is a direct upgrade from dpy2.0a with a few added features.
Oh yeah, I saw what you meant, I'll fix it
Thank you.
I'm sorry, I forgot to tell you. It's in the program.
You will be able to reproduce this way:
In 2.0, the datetime offset returned by
created_at
, etc. is nowaware
. However, the offset returned bydatetime.utcnow
isnaive
. These comparisons will raise a TypeError.In 1.7, if you want to get the avatar url of a user, use
User.avatar_url
. However, in 2.0,User.avatar.url
is used.Is there a reason for these?