Skip to content

Commit e69b7d4

Browse files
committed
Merge branch 'master' into v2.x
2 parents 22bc506 + a518aaa commit e69b7d4

File tree

177 files changed

+8865
-6995
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+8865
-6995
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ If the bug report is missing this information then it'll take us longer to fix t
3131

3232
## Submitting a Pull Request
3333

34-
Submitting a pull request is fairly simple, just make sure it focuses on a single aspect and doesn't manage to have scope creep and it's probably good to go. It would be incredibly lovely if the style is consistent to that found in the project. This project follows PEP-8 guidelines (mostly) with a column limit of 125.
34+
Submitting a pull request is fairly simple, just make sure it focuses on a single aspect and doesn't manage to have scope creep and it's probably good to go. It would be incredibly lovely if the style is consistent to that found in the project. This project follows PEP-8 guidelines (mostly) with a column limit of 120.
3535

3636
## Use of "type: ignore" comments
3737
In some cases, it might be necessary to ignore type checker warnings for one reason or another.

.github/DEVELOPER_CERTIFICATE_OF_ORIGIN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Developer Certificate of Origin (DCO)
1+
# Developer Certificate of Origin (DCO)
22
```
33
Version 1.1
44
@@ -33,4 +33,4 @@ By making a contribution to this project, I certify that:
3333
personal information I submit with it, including my sign-off) is
3434
maintained indefinitely and may be redistributed consistent with
3535
this project or the open source license(s) involved.
36-
```
36+
```

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
updates:
33
- package-ecosystem: "pip"
4-
directory: "/"
4+
directory: "/"
55
schedule:
66
interval: "daily"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ build/
3030
test.py
3131
build/
3232
node_modules/*
33-
test.py
33+
test.py

.isort.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[settings]
2+
profile = black

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ enable=bad-indentation,line-too-long
99

1010
indent-string=' '
1111

12-
max-line-length=120
12+
max-line-length=120

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,16 @@ Quick Example
9595
import discord
9696
9797
bot = discord.Bot()
98-
98+
9999
@bot.slash_command()
100100
async def hello(ctx, name: str = None):
101101
name = name or ctx.author.name
102102
await ctx.respond(f"Hello {name}!")
103-
103+
104104
@bot.user_command(name="Say Hello")
105105
async def hi(ctx, user):
106106
await ctx.respond(f"{ctx.author.mention} says hello to {user.name}!")
107-
107+
108108
bot.run("token")
109109
110110
Traditional Commands Example

discord/__init__.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
1010
"""
1111

12-
__title__ = 'discord'
13-
__author__ = 'Pycord Development'
14-
__license__ = 'MIT'
15-
__copyright__ = 'Copyright 2015-2021 Rapptz & Copyright 2021-present Pycord Development'
16-
__version__ = '2.0.0b4'
12+
__title__ = "pycord"
13+
__author__ = "Pycord Development"
14+
__license__ = "MIT"
15+
__copyright__ = "Copyright 2015-2021 Rapptz & Copyright 2021-present Pycord Development"
16+
__version__ = "2.0.0b5"
1717

18-
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
18+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1919

2020
import logging
21-
from typing import NamedTuple, Literal
21+
from typing import Literal, NamedTuple
2222

23-
from . import utils, opus, abc, ui, sinks
23+
from . import abc, opus, sinks, ui, utils
2424
from .activity import *
2525
from .appinfo import *
2626
from .asset import *
@@ -39,6 +39,7 @@
3939
from .file import *
4040
from .flags import *
4141
from .guild import *
42+
from .http import *
4243
from .integrations import *
4344
from .interactions import *
4445
from .invite import *
@@ -52,7 +53,7 @@
5253
from .raw_models import *
5354
from .reaction import *
5455
from .role import *
55-
from .scheduled_events import ScheduledEvent, ScheduledEventLocation
56+
from .scheduled_events import *
5657
from .shard import *
5758
from .stage_instance import *
5859
from .sticker import *
@@ -74,6 +75,6 @@ class VersionInfo(NamedTuple):
7475
serial: int
7576

7677

77-
version_info: VersionInfo = VersionInfo(major=2, minor=0, micro=0, releaselevel='beta', serial=4)
78+
version_info: VersionInfo = VersionInfo(major=2, minor=0, micro=0, releaselevel="beta", serial=5)
7879

7980
logging.getLogger(__name__).addHandler(logging.NullHandler())

0 commit comments

Comments
 (0)