original_docstring: 
          Constructs an embed for a reddit post based on a PRAW post object.
          :param post: A praw post object.
          :param subreddit: The name of the subreddit
          :return: A discord embed.
          
docstring: Constructs an embed for a reddit post based on a PRAW post object.
docstring_tokens: Constructs an embed for a reddit post based on a PRAW post object .
code: def construct_embed(self, post, subreddit: str) -> discord.Embed:
          """
          Constructs an embed for a reddit post based on a PRAW post object.
          :param post: A praw post object.
          :param subreddit: The name of the subreddit
          :return: A discord embed.
          """
          em = discord.Embed(color=discord.Color.blue())
  
          desc = ""
          if len(post.title) > 225:
              title = "[{}]({})".format(post.title, post.shortlink)
              em.title = title
          else:
              desc = "**[{}]({})**\n".format(post.title, post.shortlink)
  
          # check if it's a self post
          if post.is_self:
              if len(post.selftext) < 1200:
                  desc += "\n{}".format(post.selftext)  # If it's short enough, post the full text
              else:
                  desc += "\n{}\n [More...]({})".format(post.selftext, post.shortlink)  # Otherwise truncate
  
          else:
              # add post link
              desc += "[Post link]({})".format(post.url)
              if not post.thumbnail == "default":
                  image_format = post.url[-3:]
                  if image_format in ["png", "jpg", "gif"]:
                      em.set_image(url=post.url)
                  elif post.thumbnail != "default":
                      em.set_thumbnail(url=post.thumbnail)
  
          em.description = desc
  
          em.set_author(name="New post in r/{}, by {}:"
                        .format(subreddit, post.author.name),
                        icon_url=ICON_URLS.get(subreddit,
                                               ICON_URLS["reddit"]))
  
          return em
code_tokens: def construct_embed ( self , post , subreddit : str ) -> discord . Embed : em = discord . Embed ( color = discord . Color . blue ( ) ) desc = "" if len ( post . title ) > 225 : title = "[{}]({})" . format ( post . title , post . shortlink ) em . title = title else : desc = "**[{}]({})**\n" . format ( post . title , post . shortlink ) if post . is_self : if len ( post . selftext ) < 1200 : desc += "\n{}" . format ( post . selftext ) else : desc += "\n{}\n [More...]({})" . format ( post . selftext , post . shortlink ) else : desc += "[Post link]({})" . format ( post . url ) if not post . thumbnail == "default" : image_format = post . url [ - 3 : ] if image_format in [ "png" , "jpg" , "gif" ] : em . set_image ( url = post . url ) elif post . thumbnail != "default" : em . set_thumbnail ( url = post . thumbnail ) em . description = desc em . set_author ( name = "New post in r/{}, by {}:" . format ( subreddit , post . author . name ) , icon_url = ICON_URLS . get ( subreddit , ICON_URLS [ "reddit" ] ) ) return em
short_docstring: Constructs an embed for a reddit post based on a PRAW post object.
short_docstring_tokens: Constructs an embed for a reddit post based on a PRAW post object .
comment: """
          Constructs an embed for a reddit post based on a PRAW post object.
          :param post: A praw post object.
          :param subreddit: The name of the subreddit
          :return: A discord embed.
          """$SEP$# check if it's a self post$SEP$# If it's short enough, post the full text$SEP$# Otherwise truncate$SEP$# add post link