Example #1
0
 def add_select_users(self,
                      text,
                      action_id,
                      initial_user=None,
                      confirm=None):
     self.accessory = Layout_Actions(None, []).add_select_users(
         text, action_id, initial_user, confirm).elements.pop()
     return self
Example #2
0
 def add_select_channel(self,
                        text,
                        action_id,
                        initial_channel=None,
                        confirm=None):
     self.accessory = Layout_Actions(None, []).add_select_channel(
         text, action_id, initial_channel, confirm).elements.pop()
     return self
Example #3
0
 def add_date_picker(self,
                     text,
                     action_id,
                     initial_date=None,
                     confirm=None):
     self.accessory = Layout_Actions(self.action_id, []).add_date_picker(
         text, action_id, initial_date, confirm).elements.pop()
     return self
Example #4
0
 def add_select_external(self,
                         text,
                         action_id,
                         initial_option=None,
                         min_query_length=None,
                         confirm=None):
     self.accessory = Layout_Actions(None, []).add_select_external(
         text, action_id, initial_option, min_query_length,
         confirm).elements.pop()
     return self
Example #5
0
 def add_select(self,
                text,
                options=None,
                option_groups=None,
                action_id=None,
                initial_option=None,
                confirm=None):
     self.accessory = Layout_Actions(self.action_id, []).add_select(
         text, options, option_groups, action_id, initial_option,
         confirm).elements.pop()
     return self
Example #6
0
 def add_overflow(self, options, action_id=None, confirm=None):
     self.accessory = Layout_Actions(self.action_id, []).add_overflow(
         options, action_id, confirm).elements.pop()
     return self
Example #7
0
 def add_button(self, text, url=None, value=None, style=None, confirm=None):
     self.accessory = Layout_Actions(self.action_id,
                                     []).add_button(text, value, url, style,
                                                    confirm).elements.pop()
     return self
Example #8
0
 def add_layout_actions(self, action_id=None, block_id=None):
     return Layout_Actions(action_id, self.blocks, block_id)