Add GroupUnfavoriteComposer

This commit is contained in:
Bill 2022-03-16 19:43:15 -04:00
parent 7364fa3d99
commit 2fb6e7ebb3

View File

@ -1,8 +1,7 @@
import { GroupFavoriteComposer, HabboGroupEntryData } from '@nitrots/nitro-renderer';
import { GroupFavoriteComposer, GroupUnfavoriteComposer, HabboGroupEntryData } from '@nitrots/nitro-renderer';
import { SendMessageComposer } from '..';
export const ToggleFavoriteGroup = (group: HabboGroupEntryData) =>
{
// new GroupUnfavoriteComposer(group.groupId)
SendMessageComposer(group.favourite ? null : new GroupFavoriteComposer(group.groupId));
SendMessageComposer(group.favourite ? new GroupUnfavoriteComposer(group.groupId) : new GroupFavoriteComposer(group.groupId));
}