Skip to main content

Notify Moderators Utility Module Spec

Methods

notifyMods(guild, content, caption, author, attachments)

notifyMods(guild, content, caption, author, attachments) → {Object}

Notifies moderators in a guild about a new submission and provides options to approve or deny.

Parameters:
NameTypeDescription
guildObjectThe Discord guild object.
contentstringThe content or prompt associated with the submission.
captionstringThe caption provided for the submission. (Optional)
authorObjectThe author of the submission.
attachmentsCollection or ArrayAttachments associated with the submission.
Returns:
  • An object with the following properties:
    • responses: An array of responses from moderators.
    • moderators: A collection of moderators who were notified.