feat(guild): GET /channels/:id/members
List explicit channel members (userIds) for the split members sidebar. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -34,6 +34,13 @@ export class ChannelsController {
|
||||
);
|
||||
}
|
||||
|
||||
@Get(':id/members')
|
||||
members(@Req() req: AuthedRequest, @Param('id') channelId: string) {
|
||||
const userId = req.userId ?? '';
|
||||
if (!userId) throw new UnauthorizedException('missing user');
|
||||
return this.channelsService.channelMembers(channelId);
|
||||
}
|
||||
|
||||
@Post(':id/join')
|
||||
join(@Req() req: AuthedRequest, @Param('id') channelId: string) {
|
||||
const userId = req.userId ?? '';
|
||||
|
||||
Reference in New Issue
Block a user