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.
Using
GroupsApi.GetGroupBanswill 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):
Use a group that you own or have role permission to manage bans in.
I have tested the
GETgroups/{groupId}/bansendpoint 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.