dc_set_timeout

dc_set_timeout(user, server, timestamp, reason?)#

Timeouts the user in a server until the given timestamp.

Blocking function

Invoking this function can freeze the game. Use it in a task to avoid freezing your game.

Input parameters#

Parameter Type Description
user User The user to set the timeout to.
server Server The server to set the user's timeout to.
timestamp Number The timestamp in unix time milliseconds.
reason String The audit log reason.

Output values#

Return values#

  • Null, if successful.

Uncaught exceptions #

  • Throws an exception on failure.
  • bad_request, if the given timestamp is invalid.