Fix /emote in groups

This commit is contained in:
Cohee 2023-09-15 01:17:24 +03:00
parent 6ad786f348
commit 5827f9638f
1 changed files with 2 additions and 1 deletions

View File

@ -737,7 +737,8 @@ async function setSpriteSlashCommand(_, spriteId) {
spriteId = spriteId.trim().toLowerCase();
const spriteFolderName = getSpriteFolderName();
const currentLastMessage = getLastCharacterMessage();
const spriteFolderName = getSpriteFolderName(currentLastMessage, currentLastMessage.name);
await validateImages(spriteFolderName);
// Fuzzy search for sprite