File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 3636 "chalk" : " ^4.1.0" ,
3737 "cheerio" : " 1.0.0-rc.12" ,
3838 "discord-api-types" : " ^0.37.55" ,
39- "discord -emoji-converter " : " ^1 .2.8 " ,
39+ "node -emoji" : " ^2 .2.0 " ,
4040 "discord.js" : " ^14.13.0" ,
4141 "express" : " ^4.18.1" ,
4242 "fs-promise" : " ^2.0.3" ,
Original file line number Diff line number Diff line change 1+ const emoji = require ( "node-emoji" ) ;
12const { uploadImage } = require ( "../../contracts/API/imgurAPI.js" ) ;
2- const { demojify } = require ( "discord-emoji-converter" ) ;
33const config = require ( "../../../config.json" ) ;
44
55class MessageHandler {
@@ -187,9 +187,8 @@ class MessageHandler {
187187 }
188188
189189 formatEmojis ( content ) {
190- // ? demojify() function has a bug. It throws an error when it encounters channel with emoji in its name. Example: #💬・guild-chat
191190 try {
192- return demojify ( content ) ;
191+ return emoji . unemojify ( content ) ;
193192 } catch ( e ) {
194193 return content ;
195194 }
You can’t perform that action at this time.
0 commit comments