LogoRobo.js
Packages@robojs/discordjs

registerCommandsToDiscord()

Function: registerCommandsToDiscord()

function registerCommandsToDiscord(
   rest, 
   clientId, 
   guildId, 
   commandData, 
   force, 
options?): Promise<void>

Register commands with Discord API.

Supports:

  • Entry command detection and re-registration for Discord Activities
  • Retry tracking for telemetry/debugging
  • Configurable timeout
  • Rate limit handling with exponential backoff

Parameters

ParameterType
restREST
clientIdstring
guildIdundefined | string
commandDataunknown[]
forceboolean
options?| number | RegisterCommandsOptions

Returns

Promise<void>

On this page