Wednesday, July 15, 2026 5:52:01 AM
> request_command.rb
# frozen_string_literal: true

module ESM
  module Command
    module Test
      class RequestCommand < ApplicationCommand
        command_type :player

        argument :target

        def on_execute
          add_request(to: target_user)
        end

        def on_response
        end

        def on_request_accepted
          ESM.discord_bot.deliver("accepted", to: @request.requestor.discord_user)
        end

        def on_request_declined
          ESM.discord_bot.deliver("declined", to: @request.requestor.discord_user)
        end
      end
    end
  end
end
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 43aa0d7