title: Adding local thumbnail to Discord embed and send it to a specific channel with Pycord
body: <p>Im trying to send an embed with a thumbnail attachment to a different specific channel.</p>
  <p>Sending on the local channel with interactions or DMs works but not to a specific channel</p>
  <pre><code>import discord
  from interactions import Attachment, User
  from discord.ui import Select, View, Button
  from discord.utils import get
  
  thumbnailFile = &quot;attachment://thumbnail-placeholder.png&quot;
  localThumbnail = discord.File(&quot;./Source/Images/thumbnail-placeholder.png&quot;)
  embedConfirm.set_thumbnail(url=thumbnailFile)
  
  await bot.get_channel(int(ADMINREPORTCHANNEL)).send(embed=embedConfirm, view=view, file=localThumbnail)
  </code></pre>
  <p>Any idea if i am doing something wrong?</p>
  <p>I get this output when its trying to send the embed.</p>
  <pre><code>Ignoring exception in view &lt;View timeout=None children=3&gt; for item &lt;Button style=&lt;ButtonStyle.success: 3&gt; url=None disabled=False label='Create report' emoji=None row=None&gt;:
  Traceback (most recent call last):
    File &quot;C:\Users\ogunt\anaconda3\envs\discord\lib\site-packages\discord\ui\view.py&quot;, line 371, in _scheduled_task
      await item.callback(interaction)
    File &quot;C:\Users\ogunt\Desktop\Discord Bot\BusBot\main.py&quot;, line 342, in button_create
      await bot.get_channel(int(ADMINREPORTCHANNEL)).send(embed=embedConfirm, view=view, file=localThumbnail)
    File &quot;C:\Users\ogunt\anaconda3\envs\discord\lib\site-packages\discord\abc.py&quot;, line 1481, in send
      data = await state.http.send_files(
    File &quot;C:\Users\ogunt\anaconda3\envs\discord\lib\site-packages\discord\http.py&quot;, line 284, in request
      async with self.__session.request(method, url, **kwargs) as response:
    File &quot;C:\Users\ogunt\anaconda3\envs\discord\lib\site-packages\aiohttp\client.py&quot;, line 1138, in __aenter__
      self._resp = await self._coro
    File &quot;C:\Users\ogunt\anaconda3\envs\discord\lib\site-packages\aiohttp\client.py&quot;, line 507, in _request
      req = self._request_class(
    File &quot;C:\Users\ogunt\anaconda3\envs\discord\lib\site-packages\aiohttp\client_reqrep.py&quot;, line 313, in __init__
      self.update_body_from_data(data)
    File &quot;C:\Users\ogunt\anaconda3\envs\discord\lib\site-packages\aiohttp\client_reqrep.py&quot;, line 507, in update_body_from_data
      body = body()
    File &quot;C:\Users\ogunt\anaconda3\envs\discord\lib\site-packages\aiohttp\formdata.py&quot;, line 170, in __call__
      return self._gen_form_data()
    File &quot;C:\Users\ogunt\anaconda3\envs\discord\lib\site-packages\aiohttp\formdata.py&quot;, line 163, in _gen_form_data
      self._writer.append_payload(part)
    File &quot;C:\Users\ogunt\anaconda3\envs\discord\lib\site-packages\aiohttp\multipart.py&quot;, line 831, in append_payload
      size = payload.size
    File &quot;C:\Users\ogunt\anaconda3\envs\discord\lib\site-packages\aiohttp\payload.py&quot;, line 379, in size
      return os.fstat(self._value.fileno()).st_size - self._value.tell()
  ValueError: I/O operation on closed file
  </code></pre>