Преглед на файлове

pass the correct info to rejection embed

Kylie Jo Swistak преди 5 години
родител
ревизия
176d412c33
променени са 5 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. 1 1
      app/app_forms/character_app.rb
  2. 1 1
      app/app_forms/image_app.rb
  3. 1 1
      app/app_forms/item_app.rb
  4. 1 1
      app/app_forms/landmark_app.rb
  5. 1 1
      app/app_forms/reactivate_app.rb

+ 1 - 1
app/app_forms/character_app.rb

@@ -53,7 +53,7 @@ class CharacterApplication < ApplicationForm
   def self.deny(event)
     # Create App Rejection
     reply = BotResponse.new(
-      embed: reject_app(event, :character),
+      embed: reject_app(event.message.embeds.first, :character),
       reactions: CharApp::REJECT_MESSAGES.map{ |k,v| k }
     )
 

+ 1 - 1
app/app_forms/image_app.rb

@@ -49,7 +49,7 @@ class ImageApplication < ApplicationForm
   def self.deny(event)
     # Create App Rejection
     reply = BotResponse.new(
-      embed: reject_app(event, :image),
+      embed: reject_app(event.message.embeds.first, :image),
       reactions: ImgApp::REJECT_MESSAGES.map{ |k,v| k }
     )
 

+ 1 - 1
app/app_forms/item_app.rb

@@ -40,7 +40,7 @@ class ItemApplication < ApplicationForm
 
   def self.deny(event)
     reply = BotResponse.new(
-      embed: reject_app(event, :item),
+      embed: reject_app(event.message.embeds.first, :item),
       reactions: ItemApp::REJECT_MESSAGES.map{ |k,v| k }
     )
 

+ 1 - 1
app/app_forms/landmark_app.rb

@@ -40,7 +40,7 @@ class LandmarkApplication < ApplicationForm
 
   def self.deny(event)
     reply = BotResponse.new(
-      embed: reject_app(event, :landmark),
+      embed: reject_app(event.message.embeds.first, :landmark),
       reactions: LmApp::REJECT_MESSAGES.map{ |k,v| k }
     )
 

+ 1 - 1
app/app_forms/reactivate_app.rb

@@ -54,7 +54,7 @@ class ReactivationApplication < ApplicationForm
   def self.deny(event)
     # Create App Rejection
     reply = BotResponse.new(
-      embed: reject_app(event, :reactivation),
+      embed: reject_app(event.message.embeds.first, :reactivation),
       reactions: CharApp::REJECT_MESSAGES.map{ |k,v| k }
     )