MCPcopy Create free account
hub / github.com/GetStream/stream-js / flag

Method flag

src/user.ts:172–174  ·  view source on GitHub ↗

* Flag this user for moderation (⚠️ server-side only) * @link https://getstream.io/activity-feeds/docs/node/moderation/?language=js#flagging-users * @method flag * @memberof StreamUser.prototype * @param {FlagUserOptions} [options] - Optional flagging options * @param {string} [option

(options: FlagUserOptions = {})

Source from the content-addressed store, hash-verified

170 * @example user.flag({ reason: 'inappropriate_content', user_id: 'alice' })
171 */
172 flag(options: FlagUserOptions = {}) {
173 return this.client.flagUser(this.id, options);
174 }
175}

Callers 1

user_flag.jsFile · 0.80

Calls 1

flagUserMethod · 0.80

Tested by

no test coverage detected