Skip to content

Commit

Permalink
Added missing spaces, fixed example code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Faabvk committed Nov 11, 2023
1 parent bd047d3 commit deff5c1
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions wom/services/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ async def create_group(
Args:
name: The name for the group.
*members: The optional members to add to the group.
*members: The optional members to add to the group, as GroupMemberFragment objects.
Keyword Args:
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.models.GroupMemberFragment("Jonxslays", wom.models.GroupRole.Owner),
wom.models.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.models.GroupMemberFragment("Jonxslays", wom.models.GroupRole.Owner),
wom.models.GroupMemberFragment("Faabvk", None)
],
description="Some new description."
)
```
Expand Down Expand Up @@ -325,11 +328,11 @@ async def add_members(
await client.groups.add_members(
123,
"111-111-111",
wom.GroupMemberFragment(
wom.models.GroupMemberFragment(
"Jonxslays", wom.GroupRole.Administrator
),
wom.GroupMemberFragment("Zezima"),
wom.GroupMemberFragment("Psikoi"),
wom.models.GroupMemberFragment("Zezima"),
wom.models.GroupMemberFragment("Psikoi"),
)
```
"""
Expand Down

0 comments on commit deff5c1

Please sign in to comment.