Jelajahi Sumber

fix reject title

Kylie Jo Swistak 5 tahun lalu
induk
melakukan
ca666e6ceb
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      app/embeds/reject.rb

+ 2 - 1
app/embeds/reject.rb

@@ -3,7 +3,7 @@ FTR = "If you have any questions, feel free to ask a Guildmaster"
 
 def reject_app(app, opts)
   embed = Embed.new(
-    title: app.fields[1].value || 'Unknown Character',
+    title: app.title,
     description: app.description,
     color: ERROR,
     author: {
@@ -15,6 +15,7 @@ def reject_app(app, opts)
 
   fields = case opts
            when :character
+             embed.title = app.fields[1].value
              reject_fields(CharApp::REJECT_MESSAGES)
            when :image
              reject_fields(ImgApp::REJECT_MESSAGES)