Classic APIs
ClassicGroupsApi
setGroupIcon

setGroupIcon

Sets group icon.

Parameters

NameTypeDescription
groupIdIdentifierThe id of the group to set the icon for.
newIconstring | FileThe new icon for the group.

Example

const { data: success } = await ClassicGroupsApi.setGroupIcon({ groupId: 5850082, newIcon: "./newGroupIcon.png" }); 

Endpoint

PATCH /v1/groups/{groupId}/status