Skip to content

GetGroupBans returns null on success #253

@dustuu

Description

@dustuu

Using GroupsApi.GetGroupBans will always return null, even when the request seems to succeed with no exceptions thrown or errors logged.

Example code to reproduce the issue (make sure you also log in first, using the sample code from this repo's README):

Configuration config = new()
{
    Username = "your_username_here",
    Password = "your_password_here",
    UserAgent = "your_user_agent_here"
};
GroupsApi groupsApi = new(config);
List<GroupMember> groupBans = groupsApi.GetGroupBans("your_group_id_here");

Use a group that you own or have role permission to manage bans in.

I have tested the GET groups/{groupId}/bans endpoint manually with Postman by supplying the exact same user and group info, and confirmed that it works as expected. This issue only occurs for me when using this library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions