<s> """<STR_LIT>""" <EOL> class Permissions : <EOL> """<STR_LIT>""" <EOL> __slots__ = [ '<STR_LIT:value>' ] <EOL> def __init__ ( self , permissions = <NUM_LIT:0> , ** kwargs ) : <EOL> self . value = permissions <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , Permissions ) and self . value == other . value <EOL> def __ne__ ( self , other ) : <EOL> return not self . __eq__ ( other ) <EOL> def __hash__ ( self ) : <EOL> return hash ( self . value ) <EOL> @ classmethod <EOL> def none ( cls ) : <EOL> """<STR_LIT>""" <EOL> return cls ( <NUM_LIT:0> ) <EOL> @ classmethod <EOL> def all ( cls ) : <EOL> """<STR_LIT>""" <EOL> return cls ( <NUM_LIT> ) <EOL> @ classmethod <EOL> def all_channel ( cls ) : <EOL> """<STR_LIT>""" <EOL> return cls ( <NUM_LIT> ) <EOL> @ classmethod <EOL> def general ( cls ) : <EOL> """<STR_LIT>""" <EOL> return cls ( <NUM_LIT> ) <EOL> @ classmethod <EOL> def text ( cls ) : <EOL> """<STR_LIT>""" <EOL> return cls ( <NUM_LIT> ) <EOL> @ classmethod <EOL> def voice ( cls ) : <EOL> """<STR_LIT>""" <EOL> return cls ( <NUM_LIT> ) <EOL> def _bit ( self , index ) : <EOL> return bool ( ( self . value >> index ) & <NUM_LIT:1> ) <EOL> def _set ( self , index , value ) : <EOL> if value == True : <EOL> self . value |= ( <NUM_LIT:1> << index ) <EOL> elif value == False : <EOL> self . value &= ~ ( <NUM_LIT:1> << index ) <EOL> else : <EOL> raise TypeError ( '<STR_LIT>' ) <EOL> def handle_overwrite ( self , allow , deny ) : <EOL> self . value = ( self . value & ~ deny ) | allow <EOL> @ property <EOL> def create_instant_invite ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT:0> ) <EOL> @ create_instant_invite . setter <EOL> def create_instant_invite ( self , value ) : <EOL> self . _set ( <NUM_LIT:0> , value ) <EOL> @ property <EOL> def kick_members ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT:1> ) <EOL> @ kick_members . setter <EOL> def kick_members ( self , value ) : <EOL> self . _set ( <NUM_LIT:1> , value ) <EOL> @ property <EOL> def ban_members ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT:2> ) <EOL> @ ban_members . setter <EOL> def ban_members ( self , value ) : <EOL> self . _set ( <NUM_LIT:2> , value ) <EOL> @ property <EOL> def manage_roles ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT:3> ) <EOL> @ manage_roles . setter <EOL> def manage_roles ( self , value ) : <EOL> self . _set ( <NUM_LIT:3> , value ) <EOL> @ property <EOL> def manage_channels ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT:4> ) <EOL> @ manage_channels . setter <EOL> def manage_channels ( self , value ) : <EOL> self . _set ( <NUM_LIT:4> , value ) <EOL> @ property <EOL> def manage_server ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT:5> ) <EOL> @ manage_server . setter <EOL> def manage_server ( self , value ) : <EOL> self . _set ( <NUM_LIT:5> , value ) <EOL> @ property <EOL> def read_messages ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT:10> ) <EOL> @ read_messages . setter <EOL> def read_messages ( self , value ) : <EOL> self . _set ( <NUM_LIT:10> , value ) <EOL> @ property <EOL> def send_messages ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT:11> ) <EOL> @ send_messages . setter <EOL> def send_messages ( self , value ) : <EOL> self . _set ( <NUM_LIT:11> , value ) <EOL> @ property <EOL> def send_tts_messages ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT:12> ) <EOL> @ send_tts_messages . setter <EOL> def send_tts_messages ( self , value ) : <EOL> self . _set ( <NUM_LIT:12> , value ) <EOL> @ property <EOL> def manage_messages ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT> ) <EOL> @ manage_messages . setter <EOL> def manage_messages ( self , value ) : <EOL> self . _set ( <NUM_LIT> , value ) <EOL> @ property <EOL> def embed_links ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT> ) <EOL> @ embed_links . setter <EOL> def embed_links ( self , value ) : <EOL> self . _set ( <NUM_LIT> , value ) <EOL> @ property <EOL> def attach_files ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT:15> ) <EOL> @ attach_files . setter <EOL> def attach_files ( self , value ) : <EOL> self . _set ( <NUM_LIT:15> , value ) <EOL> @ property <EOL> def read_message_history ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT:16> ) <EOL> @ read_message_history . setter <EOL> def read_message_history ( self , value ) : <EOL> self . _set ( <NUM_LIT:16> , value ) <EOL> @ property <EOL> def mention_everyone ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT> ) <EOL> @ mention_everyone . setter <EOL> def mention_everyone ( self , value ) : <EOL> self . _set ( <NUM_LIT> , value ) <EOL> @ property <EOL> def connect ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT:20> ) <EOL> @ connect . setter <EOL> def connect ( self , value ) : <EOL> self . _set ( <NUM_LIT:20> , value ) <EOL> @ property <EOL> def speak ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT> ) <EOL> @ speak . setter <EOL> def speak ( self , value ) : <EOL> self . _set ( <NUM_LIT> , value ) <EOL> @ property <EOL> def mute_members ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT> ) <EOL> @ mute_members . setter <EOL> def mute_members ( self , value ) : <EOL> self . _set ( <NUM_LIT> , value ) <EOL> @ property <EOL> def deafen_members ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT> ) <EOL> @ deafen_members . setter <EOL> def deafen_members ( self , value ) : <EOL> self . _set ( <NUM_LIT> , value ) <EOL> @ property <EOL> def move_members ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT> ) <EOL> @ move_members . setter <EOL> def move_members ( self , value ) : <EOL> self . _set ( <NUM_LIT> , value ) <EOL> @ property <EOL> def use_voice_activation ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT> ) <EOL> @ use_voice_activation . setter <EOL> def use_voice_activation ( self , value ) : <EOL> self . _set ( <NUM_LIT> , value ) <EOL> @ property <EOL> def change_nicknames ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT> ) <EOL> @ change_nicknames . setter <EOL> def change_nicknames ( self , value ) : <EOL> self . _set ( <NUM_LIT> , value ) <EOL> @ property <EOL> def manage_nicknames ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _bit ( <NUM_LIT> ) <EOL> @ manage_nicknames . setter <EOL> def manage_nicknames ( self , value ) : <EOL> self . _set ( <NUM_LIT> , value ) </s>
