#Continuing the thread....How would i open the MD file?

1 messages · Page 1 of 1 (latest)

celest current
#

#1041715498011873381

I have migrated over to a .md from a .html and am wondering if that would be a better option to have link to a hyperlink in an embed. if so, how would i go about doing it?

async def some_function(self,inter):
  file = disnake.File(path_to_file)
  embed = disnake.Embed()

  await inter.response.send_message(embed=embed,file=file)?
```I don't want them to have to download the file to view it. I just want the discord bot to give them a link that opens the md file
drifting harbor
#

That's not possible.

celest current
#

ok so I have to make it a downloadable file, correct?

#

like it would be execute command > return link to webpage for commands > chrome opens .md file otherwise, I'm lost and can only do embeds with the information in them

#

i'll just make it a file. nevermind. thanks

#

or I can just make it be a link to the file in the repo. that would work too.

drifting harbor
#

I guess I should explain.

If you attach an md file it will provide them with a small piece of it. A sample, if you will. They would need to download to view it

#

When you were told to use markdown before, it was meant to use the markdown provided by discord within your embed.

celest current
#

but I'm trying to avoid using embeds to display the information though. I'll just put the read me's in my websites files and then link to them once I get the website up and hosted. It'll just be easier that way.

drifting harbor
#

Here are your options.

  1. Put your help/docs info into an embed and use the available markdown tools provided by discord
  2. host a website and use a button to link to that docs page, which would open their browser to that page
  3. upload the md to github, and link to that page
  4. Use github pages to host your docs to host a single webpage and link to that
celest current
#

ok thanks /solved