Using my custom emoji in the description of an embed looks fine but on the title it just shows it in <:emojiName:emojiID> format. Here's a screenshot of it:
Discord's REST based API simply does not parse emoji objects in the embeds's footer and author section, only title, fields and description may contain emojis. However you can always use utf8 based emojis 😄!
Turns out it is possible to use custom emojis in embed titles, but I was using .setAuthor() instead of .setTitle(), thats why it wasn't working out.
Related
I am using react.js
I'm trying to build a blog page.
there is a texterea tag to write a blog for the user.
now I want to add the function that allows users to add words that are linked.
so that when i show the text from that input words that are linked are clickable
enter image description here
like the blue words in wiki in the image above.
pardon my mistakes (1st question in StackOverflow)
I know about dangerouslysetinnerhtml. but not sure if it's the right way to do so. because then users can modify the code inside (i think). so what is the safe and right way to do so
Reading your case Markdown seems best option as it also supports links insertion. For rendering user entered markdown you may use library like React Markdown. For writing markdown textarea is fine as long as you write markdown syntax properly but you may want to consider libraries like React textarea markdown editor to make things easier.
I am trying to format the content of 'Text Area' when using WordPress's Advanced Custom Fields. I am using React to build the project.
In an attempt to debug, I have been following this documentation and set my options to resemble the image referenced. Including Text Area as one of my custom fields and setting the New Lines option to Automatically add paragraphs
The documentation then goes on to show an example using PHP to render the content.
I am using graphQL to fetch my data, and delivering the contents as follows:
<div className="media-description-area">
{this.props.activeDescription}
</div>
with activeDescription being destructured from the object that the GraphQL request delivers.
The text as its being set in the field itself looks like this, with spacing included:
The formatting tags are being rendered directly into the string itself, this how it is appearing in the document:
Does anyone know how why this is? I am referring to the field directly so it appears as this formatting is being delivered from WordPress itself
activeDescription: objects[0].items[0].projectDescription,
Thank You
In the image above, you can see the text with in blue color and the copy button.
I want to create the same thing, but don't know how to do it.
Does anyone know how to do it?
I just checked by joining the discord you sent. And the copy icon is just a simple icon with no use.
You can't at the moment make a "copy to clipboard" action using any sort of text inside an embed. (It was already suggested a while ago here)
Maybe Discord will add this feature someday.
If you just need to copy the exact same thing, they are doing something like:
[click me](https://google.com) 📋
Discord has not added this functionality yet. The icon there is likely just a small image.. However, you can use an external library called pyperclip. Then, run the following code with an interaction.(interactions are discord 2.0 stuff but are pretty stable in my opinion)
import pyperclip pyperclip.copy('The text to be copied to the clipboard.')
I want to render ₹ in PDF using C#.
Instead of this I am getting ?.
In form am able to print how to render ₹ but I am facing this issue only with PDF.
Attached image
Make sure Unicode is enabled in PDFsharp and also make sure the font use are using contains that symbol.
Since you get "?" instead of the symbol, you most likely just have to set the PdfFontEncoding.Unicode option as shown in the sample.
See this sample:
http://pdfsharp.net/wiki/Unicode-sample.ashx
I need do extract the text from the PDF file.With the help of Poppler API i can able to extract all text available in that page . even i can able to get the font information like Bold and italic .But i cant able to get the size of the text.Please let me know the way to get the size of text.
Thanks
Although late by an eternity, take a look at TextWord::getFontSize().