Skip to content

Commit e4dce05

Browse files
author
SSKATE
committed
No More Discord.py
1 parent 9c57aaa commit e4dce05

File tree

17 files changed

+33
-26
lines changed

17 files changed

+33
-26
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Discord server
4-
url: https://discord.gg/pKM6stqPxS
5-
about: Discord-components' official discord server (you can get help here!)
4+
url: https://discord.gg/294KSUxcz2
5+
about: SpaceDev official discord server (you can get help here!)

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
<p align="center">
1111
<h3>An unofficial third party library of py-cord for discord components.</h3>
1212
</p>
13+
<img src="https://app.travis-ci.com/spacedev-official/py-cord-components.svg?branch=master" alt="Travis CI Result">
1314

1415
## Welcome!
1516

1617
Discord components are cool, but discord.py will support it on version 2.0. It
17-
is hard to wait, so we made a third-party library for using components such as
18+
is hard to recreate, so we made a third-party library for using components such as
1819
buttons or selects!
1920

2021
This project is open source ⭐.
@@ -48,3 +49,9 @@ You can see many examples
4849
## License
4950

5051
This project is under the MIT License.
52+
53+
## Repos using PycordComponents
54+
*
55+
56+
## How-to use
57+
* Every discordpy, discord,DiscordComponent mention should be changed to pycord, pycord, PycordComponent

examples/basic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
from discord_components import Button, Select, SelectOption, ComponentsBot
1+
from py_cord_components import Button, Select, SelectOption, ComponentsBot
22

33

44
bot = ComponentsBot("!")
55
"""
66
or you can just override the methods yourself
77
88
bot = discord.ext.commands.Bot("!")
9-
DiscordComponents(bot)
9+
PycordComponents(bot)
1010
"""
1111

1212

examples/cog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from discord.ext.commands import command, Cog
2-
from discord_components import (
2+
from py_cord_components import (
33
Button,
44
ButtonStyle,
55
Select,

examples/event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
from discord_components import Button, Select, SelectOption, ComponentsBot
1+
from py_cord_components import Button, Select, SelectOption, ComponentsBot
22

33

44
bot = ComponentsBot("!")
55
"""
66
or you can just override the methods yourself
77
88
bot = discord.ext.commands.Bot("!")
9-
DiscordComponents(bot)
9+
PycordComponents(bot)
1010
"""
1111

1212

examples/paginator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from typing import List
22

33
from discord.abc import Messageable
4-
from discord_components import (
5-
DiscordComponents,
4+
from py_cord_components import (
5+
PycordComponents,
66
Button,
77
ButtonStyle,
88
Select,
@@ -14,7 +14,7 @@
1414
class Paginator:
1515
def __init__(
1616
self,
17-
client: DiscordComponents,
17+
client: PycordComponents,
1818
channel: Messageable,
1919
contents: List[str],
2020
use_select: bool = False,
File renamed without changes.

discord_components/client.py renamed to py_cord_components/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616
from .ext.filters import *
1717

18-
__all__ = ("DiscordComponents", "ComponentsClient", "ComponentsBot")
18+
__all__ = ("PycordComponents", "ComponentsClient", "ComponentsBot")
1919

2020

21-
class DiscordComponents:
21+
class PycordComponents:
2222
def __init__(
2323
self,
2424
bot: Union[Bot, Client],
@@ -118,10 +118,10 @@ def add_callback(self, component: Component, callback, *, uses: int = None, filt
118118
class ComponentsClient(Client):
119119
def __init__(self, *args, **kwargs):
120120
super().__init__(*args, **kwargs)
121-
self.components_manager = DiscordComponents(self)
121+
self.components_manager = PycordComponents(self)
122122

123123

124124
class ComponentsBot(Bot):
125125
def __init__(self, *args, **kwargs):
126126
super().__init__(*args, **kwargs)
127-
self.components_manager = DiscordComponents(self)
127+
self.components_manager = PycordComponents(self)
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)