Wednesday, July 15, 2026 2:55:14 AM
> custom.rb
# frozen_string_literal: true

module ESM
  class Xm8Notification
    class Custom < Xm8Notification
      def valid?
        Embed.from_hash!(content.to_h)
      rescue ArgumentError
        false
      end

      def to_embed
        Embed.from_hash!(content.to_h).tap do |e|
          e.footer = "[#{server.server_id}] #{server.server_name}"
        end
      end
    end
  end
end
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 43aa0d7