(self, emojis)
Add emojis to the Event.

        Args:
            emojis: List of emojis to add (as unicode codepoints).
Add emojis to the Event.
Add emojis to the Event .
def add_emojis(self, emojis):
        """Add emojis to the Event.

        Args:
            emojis: List of emojis to add (as unicode codepoints).
        """
        if not emojis:
            return

        existing_emoji_list = self.source.get('__ts_emojis', [])
        if not isinstance(existing_emoji_list, (list, tuple)):
            existing_emoji_list = []

        if self._analyzer:
            if self.event_id in self._analyzer.emoji_events:
                existing_emoji_list = self._analyzer.emoji_events[
                    self.event_id].get('emojis')
            else:
                self._analyzer.emoji_events[self.event_id] = {
                    'event': self, 'emojis': existing_emoji_list}

        new_emoji_list = list(set().union(existing_emoji_list, emojis))

        if self._analyzer:
            self._analyzer.emoji_events[
                self.event_id]['emojis'] = new_emoji_list
        else:
            updated_event_attribute = {'__ts_emojis': new_emoji_list}
            self._update(updated_event_attribute)
def add_emojis ( self , emojis ) : if not emojis : return existing_emoji_list = self . source . get ( '__ts_emojis' , [ ] ) if not isinstance ( existing_emoji_list , ( list , tuple ) ) : existing_emoji_list = [ ] if self . _analyzer : if self . event_id in self . _analyzer . emoji_events : existing_emoji_list = self . _analyzer . emoji_events [ self . event_id ] . get ( 'emojis' ) else : self . _analyzer . emoji_events [ self . event_id ] = { 'event' : self , 'emojis' : existing_emoji_list } new_emoji_list = list ( set ( ) . union ( existing_emoji_list , emojis ) ) if self . _analyzer : self . _analyzer . emoji_events [ self . event_id ] [ 'emojis' ] = new_emoji_list else : updated_event_attribute = { '__ts_emojis' : new_emoji_list } self . _update ( updated_event_attribute )