Parcourir la source

pass the correct info to rejection embed

Kylie Jo Swistak il y a 5 ans
Parent
commit
176d412c33

+ 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 }
     )