discourse/plugins/automation/lib/discourse_automation/triggers/pm_created.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
403 B
Ruby
Raw Normal View History

# frozen_string_literal: true
DiscourseAutomation::Triggerable.add(DiscourseAutomation::Triggers::PM_CREATED) do
field :restricted_user, component: :user
field :restricted_group, component: :group
field :ignore_staff, component: :boolean
field :ignore_automated, component: :boolean
field :ignore_group_members, component: :boolean
field :valid_trust_levels, component: :"trust-levels"
end