original_docstring: Upload the images to Discord and return the resulting attachments
docstring: Upload the images to Discord and return the resulting attachments
docstring_tokens: Upload the images to Discord and return the resulting attachments
code: async def upload_images(channel):
      """Upload the images to Discord and return the resulting attachments"""
  
      result = {}
      for chunk in chunked(_CARD_IMG_PATH.glob('*.png'), 10):
          files = [discord.File(str(f.resolve())) for f in chunk]
          message = await channel.send(files=files)
          result.update((a.filename.replace('-', ' '), a.url) for a in message.attachments)
      return result
code_tokens: async def upload_images ( channel ) : result = { } for chunk in chunked ( _CARD_IMG_PATH . glob ( '*.png' ) , 10 ) : files = [ discord . File ( str ( f . resolve ( ) ) ) for f in chunk ] message = await channel . send ( files = files ) result . update ( ( a . filename . replace ( '-' , ' ' ) , a . url ) for a in message . attachments ) return result
short_docstring: Upload the images to Discord and return the resulting attachments
short_docstring_tokens: Upload the images to Discord and return the resulting attachments
comment: """Upload the images to Discord and return the resulting attachments"""