Friday, September 20, 2024 2:45:20 AM
> settings

Customize


Authenticate

> command_configuration.rb
# frozen_string_literal: true

module ESM
  class CommandConfiguration < ApplicationRecord
    attribute :community_id, :integer
    attribute :command_name, :string
    attribute :enabled, :boolean, default: true
    attribute :notify_when_disabled, :boolean, default: true
    attribute :cooldown_quantity, :integer, default: 2
    attribute :cooldown_type, :string, default: "seconds"
    attribute :allowed_in_text_channels, :boolean, default: true
    attribute :allowlist_enabled, :boolean, default: false
    attribute :allowlisted_role_ids, :json, default: []
    attribute :created_at, :datetime
    attribute :updated_at, :datetime

    belongs_to :community
  end
end
All opinions represented herein are my own
- © 2024 itsthedevman
- build 340fbb8