X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FDiscordAppCommands%2FAlttpTechCommand.php;h=ac341ba46b22282d7b3b53e9dd9b5ea71f5944ca;hb=HEAD;hp=d97cfee544a78ca93254d5970230bb06ec43588a;hpb=1557083acedbffeae2cec7deaa485fd8dcdbaa49;p=alttp.git diff --git a/app/DiscordAppCommands/AlttpTechCommand.php b/app/DiscordAppCommands/AlttpTechCommand.php index d97cfee..ac341ba 100644 --- a/app/DiscordAppCommands/AlttpTechCommand.php +++ b/app/DiscordAppCommands/AlttpTechCommand.php @@ -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), ];