Skip to main content

Set Default Channel Utility Module Spec

Methods

setDefaultChannel(channelId, guildId)

Description:

Sets the default channel for submissions in the database. If the channel and guild combination already exists, it updates the submission channel.

Parameters:
NameTypeDescription
channelIdstringThe ID of the Discord channel.
guildIdstringThe ID of the Discord guild.
Returns:
  • A promise that resolves to 0 on success.

  • A promise that resolves to 1 on failure.

    Type: Promise.<number>