]> git.localhorst.tv Git - alttp.git/blobdiff - app/DiscordAppCommands/AlttpTechCommand.php
add tech gif
[alttp.git] / app / DiscordAppCommands / AlttpTechCommand.php
index d97cfee544a78ca93254d5970230bb06ec43588a..ac341ba46b22282d7b3b53e9dd9b5ea71f5944ca 100644 (file)
@@ -47,7 +47,11 @@ class AlttpTechCommand {
                                                                'type' => 'rich',
                                                                'url' => url('/tech/'.rawurlencode($tech->name)),
                                                        ];
-                                                       if ($tech->image) {
+                                                       if ($tech->gif) {
+                                                               $properties['image'] = [
+                                                                       'url' => url($tech->gif),
+                                                               ];
+                                                       } else if ($tech->image) {
                                                                $properties['image'] = [
                                                                        'url' => url($tech->image),
                                                                ];