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 1 commit
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
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.
Faabvk marked this conversation as resolved.
Show resolved Hide resolved

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"),
Faabvk marked this conversation as resolved.
Show resolved Hide resolved
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)
Faabvk marked this conversation as resolved.
Show resolved Hide resolved
],
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(
Faabvk marked this conversation as resolved.
Show resolved Hide resolved
"Jonxslays", wom.GroupRole.Administrator
),
wom.GroupMemberFragment("Zezima"),
wom.GroupMemberFragment("Psikoi"),
wom.models.GroupMemberFragment("Zezima"),
wom.models.GroupMemberFragment("Psikoi"),
Faabvk marked this conversation as resolved.
Show resolved Hide resolved
)
```
"""
Expand Down
Loading