app/logical/discord_slash_command.rb
def params
      @params ||= data.dig(:data, :options).map do |opt|
        [opt[:name], opt[:value]]
      end.to_h.with_indifferent_access
    end
# The parameters passed to the command. A hash.
The parameters passed to the command. A hash.
The parameters passed to the command . A hash .
def params
      @params ||= data.dig(:data, :options).map do |opt|
        [opt[:name], opt[:value]]
      end.to_h.with_indifferent_access
    end
def params @params ||= data . dig ( :data , :options ) . map do | opt | [ opt [ :name ] , opt [ :value ] ] end . to_h . with_indifferent_access end
The parameters passed to the command.
The parameters passed to the command .