Advertisement
Aouchan

Emojiinfo (Using API)

May 11th, 2024
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | Source Code | 0 0
  1. $nomention
  2. $reply
  3. $allowUserMentions[]
  4.  
  5. $c[⁠▽ You'll need an API Key in order to use this code ▽]
  6.  
  7. $c[▽ Visit -> https://dadocs.rickyjs.xyz/ for more information ▽]
  8.  
  9. $if[$isSlash==true]
  10. $var[input;$message[emoji]]
  11. $else
  12. $if[$message[1]==]
  13. You need to provide an emoji to enlarge!
  14. $stop
  15. $endif
  16. $var[input;$message[1]]
  17. $endif
  18.  
  19. $var[color;76d8d6]
  20. $var[api-key;$getVar[ApiKey]]
  21.  
  22. $if[$checkContains[$var[input];:]==true]
  23. $textSplit[$var[input];:]
  24.  
  25. $var[animated?;$checkContains[$splitText[1];a]]
  26. $var[emoji-id;$replaceText[$splitText[3];>;]]
  27.  
  28. $httpGet[https://cdn.discordapp.com/emojis/$var[emoji-id].$replaceText[$replaceText[$var[animated?];true;gif];false;png]]
  29.  
  30. $if[$httpGetHeader[Content-Type]==]
  31. ❌ Invalid Provided Custom Emoji!
  32. $else
  33. $var[emoji-name;$splitText[2]]
  34. $var[emoji-creation;$calculate[($var[emoji-id] / 4194304 + 1420070400000) / 1000 ]]
  35.  
  36. $if[$var[emoji-name]==]
  37. ❌ Invalid Provided Custom Emoji!
  38. $else
  39. $author[Emoji Enlarged!]
  40. $authorIcon[$authorAvatar]
  41. $addField[Emoji Name;$var[emoji-name]]
  42. $addField[Animated?;$var[animated?]]
  43. $addField[Created on;<t:$var[emoji-creation]> (<t:$var[emoji-creation]:R>)]
  44.  
  45. $image[https://cdn.discordapp.com/emojis/$var[emoji-id].$replaceText[$replaceText[$var[animated?];true;gif];false;png]]
  46. $footer[Emoji ID: $var[emoji-id]]
  47. $color[$var[color]]
  48. $endif
  49. $endif
  50. $else
  51. $if[$or[$isNumber[$var[input]]==true;$checkContains[$toLowercase[$var[input]];a;b;c;d;e;f;g;h;i;j;k;l;m;n;o;p;q;r;s;t;u;v;w;x;y;z]==true]]
  52. $ephemeral
  53. ❌ Invalid Emoji!
  54. $else
  55. $httpAddHeader[apikey;$var[api-key]]
  56. $httpPost[https://bdfddata.rickyjs.xyz/release/emoji-info;{
  57. "emoji": "$var[input]"
  58. }]
  59.  
  60. $authorIcon[$authorAvatar]
  61. $author[Emoji Enlarged!]
  62. $addField[Unicode Emoji Name;\$var[input]]
  63. $addField[Encoded Format;$url[encode;$var[input]]]
  64. $addField[Hex Format;$httpResult[details;unicodeHex]]
  65.  
  66. $image[$httpResult[details;twemoji]]
  67. $color[$var[color]]
  68. $endif
  69. $endif
  70.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement