Skip to content
YYBartT edited this page Jun 16, 2023 · 2 revisions

Users

Functions

This module offers a collection of functions designed to address specific tasks and provide utilities for various purposes. Explore the available functions to make the most of the functionalities provided by this module.



Back To Top

modio_user_mute

mod.io Endpoint: Mute a user


This function mutes a user. This will prevent mod.io from returning mods to you authored by the muted user.


Syntax:

modio_user_mute(user_id, _callback_success, _callback_failed)
Argument Type Description
user_id Real user unique identifier
_callback_success Function or Method The function to trigger when the request is successful.
_callback_failed Function or Method The function to trigger when the request failed.

Returns:

N/A




Back To Top

modio_user_unmute

mod.io Endpoint: Unmute a user


This function unmutes a previously muted user. This will re-enable mod.io to returning mods to you authored by the muted user.


Syntax:

modio_user_unmute(_user_id, _callback_success, _callback_failed)
Argument Type Description
_user_id Real user unique identifier
_callback_success Function or Method The function to trigger when the request is successful.
_callback_failed Function or Method The function to trigger when the request failed.

Returns:

N/A