Skip to content

Commit

Permalink
I honestly don't remember but it's something important + note to the …
Browse files Browse the repository at this point in the history
…page
  • Loading branch information
Henonicks committed Dec 6, 2023
1 parent 4a29529 commit 684ebc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docpages/example_programs/misc.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ This section lists examples that do not fit neatly into any of the categories ab
* \subpage cpp-eval-command-discord
* \subpage checking-member-permissions
* \subpage setting_status
* \subpage using-emojis
* \subpage usinfg-emojis
4 changes: 3 additions & 1 deletion docpages/example_programs/misc/using-emojis.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Need your bot to use an emoji? Then you've come to the right place! Here are three examples of using emojis.

\note If your bot isn't in a guild where you want to take the custom emoji from, it won't work. If you're trying to send one, it'll turn into `:name:`, otherwise it won't work at all giving you the Unknown Emoji error.

First - Sending emojis. You have to use its mention, which depends on the type. If it's a default emoji, you use the corresponding character. So, for example, if you wanted to send a nerd emoji, you would use the nerd unicode character. Now, custom emoji. There are two types: static and animated. Their mentions are `<:[name]:[id]>` and `<a:[name]:[id]>`, where `[name]` means the emoji name and `[id]` is for its ID. When you send such mention, it automatically gets converted into your emoji. Here's an example of sending emojis:

\include{cpp} using_emojis1.cpp
Expand All @@ -24,4 +26,4 @@ Finally, select menus. These guys are covered \ref components3 "here". They requ

Yay, our context menu is now interesting!

\image html using_emojis3.png
\image html using_emojis3.png

0 comments on commit 684ebc7

Please sign in to comment.