code: def build_attachment(self, text, target, attachment, thread):
          '''Builds a slack attachment.
  
          Args:
              message (Legobot.Message): message w/ metadata to send.
  
          Returns:
              attachment (dict): attachment data.
          '''
  
          attachment = {
              'as_user': True,
              'text': text,
              'channel': target,
              'attachments': [
                  {
                      'fallback': text,
                      'image_url': attachment
                  }
              ]
          }
          if thread:
              attachment['thread_ts'] = thread
          return attachmenf build_attachment(self, text, target, attachment, thread):
          '''Builds a slack attachment.
  
          Args:
              message (Legobot.Message): message w/ metadata to send.
  
          Returns:
              attachment (dict): attachment data.
          '''
  
          attachment = {
              'as_user': True,
              'text': text,
              'channel': target,
              'attachments': [
                  {
                      'fallback': text,
                      'image_url': attachment
                  }
              ]
          }
          if thread:
              attachment['thread_ts'] = thread
          return attachment
docs: Builds a slack attachment.
  
          Args:
              message (Legobot.Message): message w/ metadata to send.
  
          Returns:
              attachment (dict): attachment data.