def menu(initial_control=None): if initial_control is None: initial_control = NaDiffMenu.id_control embed = EmbedMenu(NaDiffMenuPanes.transitions(), initial_control, delete_func=NaDiffMenu.respond_with_delete) return embed
def menu(initial_control=None): if initial_control is None: initial_control = NaDiffMenu.id_control embed = EmbedMenu( NaDiffMenuPanes.transitions(), initial_control, EmbedMenuDefaultTransitions(delete_message=EmbedTransition( DELETE_MESSAGE_EMOJI, NaDiffMenu.respond_with_delete))) return embed
def menu(original_author_id, friend_ids, bot_id): transitions = { LeaderSkillMenu.INITIAL_EMOJI: LeaderSkillMenu.respond_to_house, emoji_button_names[1]: LeaderSkillMenu.respond_to_l, emoji_button_names[2]: LeaderSkillMenu.respond_to_r, } valid_emoji_names = [e.name for e in emoji_cache.custom_emojis] + list(transitions.keys()) reaction_filters = [ ValidEmojiReactionFilter(valid_emoji_names), NotPosterEmojiReactionFilter(), BotAuthoredMessageReactionFilter(bot_id), MessageOwnerReactionFilter(original_author_id, FriendReactionFilter(original_author_id, friend_ids)) ] return EmbedMenu(reaction_filters, transitions, LeaderSkillMenu.ls_control, menu_emoji_config)
def menu(original_author_id, friend_ids, bot_id, initial_control=None): if initial_control is None: initial_control = IdMenu.id_control valid_emoji_names = [e.name for e in emoji_cache.custom_emojis] + list( IdMenuPanes.emoji_names()) reaction_filters = [ ValidEmojiReactionFilter(valid_emoji_names), NotPosterEmojiReactionFilter(), BotAuthoredMessageReactionFilter(bot_id), MessageOwnerReactionFilter( original_author_id, FriendReactionFilter(original_author_id, friend_ids)) ] embed = EmbedMenu(reaction_filters, IdMenuPanes.transitions(), initial_control, menu_emoji_config) return embed
def menu(original_author_id, friend_ids, bot_id): transitions = { TransformInfoMenu.INITIAL_EMOJI: TransformInfoMenu.respond_with_overview, emoji_button_names[1]: TransformInfoMenu.respond_with_base, emoji_button_names[2]: TransformInfoMenu.respond_with_transform, } valid_emoji_names = [e.name for e in emoji_cache.custom_emojis] + list( transitions.keys()) reaction_filters = [ ValidEmojiReactionFilter(valid_emoji_names), NotPosterEmojiReactionFilter(), BotAuthoredMessageReactionFilter(bot_id), MessageOwnerReactionFilter( original_author_id, FriendReactionFilter(original_author_id, friend_ids)) ] return EmbedMenu(reaction_filters, transitions, TransformInfoMenu.tf_control, menu_emoji_config)
def menu(): return EmbedMenu(LeaderSkillMenuPanes.transitions(), LeaderSkillMenu.ls_control)
def menu(initial_control=None): if initial_control is None: initial_control = MonsterListMenu.monster_list_control embed = EmbedMenu(MonsterListMenuPanes.transitions(), initial_control) return embed
def menu(initial_control=None): if initial_control is None: initial_control = AwakeningListMenu.awakening_list_control embed = EmbedMenu(AwakeningListMenuPanes.transitions(), initial_control) return embed
def menu(): embed = EmbedMenu({}, ClosableEmbedMenu.message_control) return embed
def menu(initial_control=None): if initial_control is None: initial_control = AzurlaneMenu.pane_control embed = EmbedMenu(AzurlaneMenuPanes.transitions(), initial_control) return embed
def menu(initial_control=None): if initial_control is None: initial_control = SeriesScrollMenu.monster_list_control embed = EmbedMenu(SeriesScrollMenuPanes.transitions(), initial_control) return embed
def menu(): embed = EmbedMenu(SimpleMenuPanes.transitions(), SimpleMenu.message_control, delete_func=SimpleMenu.respond_with_delete) return embed
def menu(): embed = EmbedMenu(DungeonMenuPanes.transitions(), DungeonMenu.message_control, delete_func=DungeonMenu.respond_with_delete) return embed
def menu(): embed = EmbedMenu( DungeonMenuPanes.transitions(), DungeonMenu.message_control, EmbedMenuDefaultTransitions(delete_message=EmbedTransition( DELETE_MESSAGE_EMOJI, DungeonMenu.respond_with_delete))) return embed
def menu(): return EmbedMenu(TransformInfoMenuPanes.transitions(), TransformInfoMenu.tf_control)
def menu(initial_control=None): if initial_control is None: initial_control = PADleScrollMenu.control embed = EmbedMenu(PADleMenuPanes.transitions(), initial_control) return embed
def menu(cls): embed = EmbedMenu({}, cls.message_control) return embed
def menu(): return EmbedMenu(ButtonInfoMenuPanes.transitions(), ButtonInfoMenu.button_info_control)
def menu(initial_control=None): if initial_control is None: initial_control = GlobalStatsMenu.control embed = EmbedMenu(GlobalStatsMenuPanes.transitions(), initial_control) return embed