Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Fix grammar issues and warning (#107)
Browse files Browse the repository at this point in the history
* readme grammar fixes

* fix redeclated requirements defined above without usage in setup.py

* more spelling errors

* more grammar fixes

* remove redundant (), fix capitalization, and two more minor changes

* Update examples/interactions/commands/application_commands.py

Co-authored-by: Dorukyum <[email protected]>
Signed-off-by: Raj Dave <[email protected]>

Signed-off-by: Raj Dave <[email protected]>
Co-authored-by: VincentRPS <[email protected]>
Co-authored-by: Dorukyum <[email protected]>
  • Loading branch information
3 people authored Dec 30, 2022
1 parent 2691d20 commit 0f05b0b
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 15 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ An automatic install should look something like
pip install -U git+https://github.com/pycord-development/pycord-v3
```

If instead, you wanted to do a manual install (incase of something like development),
If instead, you wanted to do a manual install (in case of something like development),
you could do the following

```sh
Expand All @@ -42,7 +42,7 @@ you could do the following

## Stability

While we are working and striving for stability throughout v3, its still quite a new
While we are working and striving for stability throughout v3, it's still quite a new
library so breakages can still happen especially with us still being in a pre-alpha
stage.

Expand Down Expand Up @@ -70,7 +70,7 @@ We've adopted a modern interface inspired by
Hikari to form an interface easier, smarter, and objectively better than discord.py.

Instead of following a mix of object-instance paradigm (in this case think of cog-bot)
we're following a instance-only paradigm completely restructuring old features and stripping useless parts from them.
we're following an instance-only paradigm completely restructuring old features and stripping useless parts from them.
Overall a cleanup of v2, and new better interface.

## Code Example
Expand Down
2 changes: 1 addition & 1 deletion REWRITE_OVERVIEW.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ bot = pycord.Bot(...)
async def echo(inter: pycord.Interaction, msg: str = pycord.Option(name='message', description='The message to echo')):
await inter.resp.send(msg)

bot.run()
bot.run(...)
```

## Extensible Cache
Expand Down
2 changes: 1 addition & 1 deletion examples/interactions/commands/application_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def favorite(
# this is a longer version of name displaying
# more detail and technicalities
'Your favorite Anime Show',
# this just sets it so the user cannot procede without
# this just sets it so the user cannot proceed without
# entering this option
required=True,
# enables autocomplete on Discord's side
Expand Down
4 changes: 2 additions & 2 deletions pycord/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Bot:
intents: :class:`.flags.Intents`
The Gateway Intents to use
print_banner_on_startup
Wether to print the banner on startup or not
Whether to print the banner on startup or not
logging_flavor: Union[int, str, dict[str, Any], None]
The logging flavor this bot uses
Expand Down Expand Up @@ -304,7 +304,7 @@ def wrapper(func: AsyncFunc) -> T:

def group(self, name: str, cls: Type[Group], **kwargs: Any) -> T:
"""
Create a brand new Group of Commands
Create a brand-new Group of Commands
Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion pycord/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, metadata: DiscordThreadMetadata) -> None:
self.invitable: bool | UndefinedType = metadata.get('invitable', UNDEFINED)
self.create_timestamp: datetime | UndefinedType = (
datetime.fromisoformat(metadata.get('create_timestamp'))
if metadata.get('create_timestamp') != None
if metadata.get('create_timestamp') is not None
else UNDEFINED
)

Expand Down
2 changes: 1 addition & 1 deletion pycord/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ class VisibilityType(Enum):
class WebhookType(Enum):
INCOMING = 1
CHANNEL_FOLLOWER = 2
APPLICATIOn = 3
APPLICATION = 3


class MembershipState(Enum):
Expand Down
2 changes: 1 addition & 1 deletion pycord/ext/gears/gear.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def wrapper(func: T) -> T:

def group(self, name: str, cls: Type[Group], **kwargs: Any) -> T:
"""
Create a brand new Group of Commands
Create a brand-new Group of Commands
Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion pycord/gateway/shard.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ async def handle_close(self, code: int) -> None:
raise ShardingRequired('Discord is requiring you shard your bot')
elif code == 4014:
raise DisallowedIntents(
"You aren't allowed to carry a priviledged intent wanted"
"You aren't allowed to carry a privileged intent wanted"
)

if code > 4000 or code == 4000:
Expand Down
4 changes: 2 additions & 2 deletions pycord/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def start_logging(flavor: None | int | str | dict, debug: bool = False):

flavor = None

# things that never will be logged.
# things that will never be logged.
logging.logThreads = None
logging.logProcesses = None

Expand Down Expand Up @@ -111,7 +111,7 @@ def print_banner(
'copyright': __copyright__,
'version': __version__,
'license': __license__,
# the # prefix only works on windows, and the - prefix only works on linux/unix systems
# the # prefix only works on Windows, and the - prefix only works on linux/unix systems
'current_time': today.strftime(f'%B the %#d{get_day_prefix(today.day)} of %Y')
if os.name == 'nt'
else today.strftime(f'%B the %-d{get_day_prefix(today.day)} of %Y'),
Expand Down
2 changes: 1 addition & 1 deletion pycord/state/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def get_one(self, parents: list[Any], id: Any) -> Any | None:
async def get_without_parents(self, id: Any) -> tuple[set[Any], Any] | None:
for store in self._store:
if store.id == id:
return (store.parents, store.storing)
return store.parents, store.storing

async def insert(self, parents: list[Any], id: Any, data: Any) -> None:
if len(self._store) == self.max_items:
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

__version__ = '3.0.0'

requirements = []
with open('requirements.txt') as f:
requirements = f.read().splitlines()

Expand Down

0 comments on commit 0f05b0b

Please sign in to comment.