Skip to content

Commit

Permalink
Actually dested the page, it works now. Yoinked rephrasing of the not…
Browse files Browse the repository at this point in the history
…e to make it better.
  • Loading branch information
Henonicks committed Dec 6, 2023
1 parent 684ebc7 commit 0751724
Show file tree
Hide file tree
Showing 2 changed files with 2 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 usinfg-emojis
* \subpage using-emojis
2 changes: 1 addition & 1 deletion docpages/example_programs/misc/using-emojis.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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.
\note If your bot isn't in the guild where you want to use the custom emoji from, it won't work, giving you `dpp::exception_error_code::err_unknown_emoji`.

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:

Expand Down

0 comments on commit 0751724

Please sign in to comment.