Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing spaces, fixed example code. #36

Merged
merged 3 commits into from
Nov 12, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions wom/services/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async def create_group(
clan_chat: The optional clan chat for the group. Defaults to
`None`.

description: The optional group description.Defaults to
description: The optional group description. Defaults to
`None`.

homeworld: The optional homeworld for the group. Defaults to
Expand All @@ -155,8 +155,8 @@ async def create_group(

await client.groups.create_group(
"My new group",
"Jonxslays",
"Zezima",
wom.GroupMemberFragment("Jonxslays", wom.GroupRole.Owner),
wom.GroupMemberFragment("Faabvk"),
description="The most epic group."
)
```
Expand Down Expand Up @@ -208,7 +208,7 @@ async def edit_group(
clan_chat: The optional new clan chat for the group.
Defaults to `None`.

description: The optional new group description.Defaults to
description: The optional new group description. Defaults to
`None`.

homeworld: The optional new homeworld for the group.
Expand Down Expand Up @@ -236,7 +236,10 @@ async def edit_group(
123,
"111-111-111",
name="My new group name",
members=["Jonxslays"],
members=[
wom.GroupMemberFragment("Jonxslays", wom.GroupRole.Owner),
wom.GroupMemberFragment("Faabvk")
],
description="Some new description."
)
```
Expand Down Expand Up @@ -325,7 +328,7 @@ async def add_members(
await client.groups.add_members(
123,
"111-111-111",
wom.GroupMemberFragment(
wom.models.GroupMemberFragment(
Faabvk marked this conversation as resolved.
Show resolved Hide resolved
"Jonxslays", wom.GroupRole.Administrator
),
wom.GroupMemberFragment("Zezima"),
Expand Down