Skip to content

Commit

Permalink
removed the exception from codeblock
Browse files Browse the repository at this point in the history
  • Loading branch information
Henonicks committed Dec 7, 2023
1 parent 0751724 commit c32b4e0
Showing 1 changed file with 1 addition and 1 deletion.
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 the guild where you want to use the custom emoji from, it won't work, giving you `dpp::exception_error_code::err_unknown_emoji`.
\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 c32b4e0

Please sign in to comment.