Esempio n. 1
0
 def id_control(state: IdViewState):
     if state is None:
         return None
     reaction_list = state.reaction_list
     return EmbedControl(
         [IdView.embed(state)], reaction_list
         or [emoji_cache.get_by_name(e) for e in IdMenuPanes.emoji_names()])
Esempio n. 2
0
 def id_control(state: IdViewState):
     if state is None:
         return None
     return EmbedControl(
         [IdView.embed(state)],
         state.reaction_list or NaDiffMenuPanes.emoji_names()
     )
Esempio n. 3
0
 async def make_id_embed(self, m: "MonsterModel"):
     color = await self.get_user_embed_color(self.ctx.bot.get_cog("PadInfo")
                                             )
     transform_base, true_evo_type_raw, acquire_raw, base_rarity, alt_monsters = \
         await IdViewState.query(self.dgcog, m)
     state = IdViewState("",
                         "TODO",
                         "todo",
                         "",
                         color,
                         m,
                         transform_base,
                         true_evo_type_raw,
                         acquire_raw,
                         base_rarity,
                         alt_monsters,
                         use_evo_scroll=settings.checkEvoID(
                             self.ctx.author.id))
     e = IdView.embed(state)
     return e.to_embed()
Esempio n. 4
0
 def id_control(state: IdViewState, reaction_list):
     return EmbedControl(
         [IdView.embed(state)],
         reaction_list
     )
Esempio n. 5
0
 def id_control(state: IdViewState):
     return EmbedControl([IdView.embed(state)],
                         LeaderSkillMenuPanes.emoji_names())
Esempio n. 6
0
 def id_control(state: IdViewState):
     return EmbedWrapper(IdView.embed(state),
                         LeaderSkillMenuPanes.emoji_names())
Esempio n. 7
0
 def id_control(state: IdViewState):
     return EmbedControl(
         [IdView.embed(state)],
         [emoji_cache.get_by_name(e) for e in emoji_button_names]
     )
Esempio n. 8
0
 def id_control(state: IdViewState):
     return EmbedControl(
         [IdView.embed(state)],
         [emoji_cache.get_by_name(e) for e in LeaderSkillSingleMenuPanes.emoji_names()]
     )
Esempio n. 9
0
 def id_control(state: IdViewState):
     if state is None:
         return None
     reaction_list = state.reaction_list
     return EmbedControl([IdView.embed(state)], reaction_list)
Esempio n. 10
0
 def id_control(state: IdViewState, reaction_list):
     return EmbedWrapper(IdView.embed(state), reaction_list)
Esempio n. 11
0
 def id_control(state: IdViewState):
     if state is None:
         return None
     return EmbedWrapper(IdView.embed(state), state.reaction_list
                         or IdMenuPanes.emoji_names())