Am I able to show a .txt file in the ini language?

The language "ini" makes my ticket's transcript look nice, but I would like to keep it a .txt file instead of .ini
6 Replies
d.js toolkit
d.js toolkit2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
em ୨୧
em ୨୧OP2y ago
const attachment = new AttachmentBuilder(Buffer.from(transcript), { name: `${interaction.channel.name}.ini` });
const attachment = new AttachmentBuilder(Buffer.from(transcript), { name: `${interaction.channel.name}.ini` });
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
em ୨୧
em ୨୧OP2y ago
Yeah, but I would like to display the .txt file in the ini language. Discord gives you the option to display .txt files in other languages, I would like to know if I can make the .txt file show in the ini language after sending?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
em ୨୧
em ୨୧OP2y ago
Ah, that's sad but I get it. Thank you!
Want results from more Discord servers?
Add your server