package Ġme . n ep n ep . n ep bot Ċ Ċ import Ġme . n ep n ep . n ep bot . database . getDefault Role Ċ import Ġnet . dv 8 tion . j da . api . Permission Ċ import Ġnet . dv 8 tion . j da . api . events . guild . member . Guild Member Join Event Ċ import Ġnet . dv 8 tion . j da . api . hooks . Listener Adapter Ċ Ċ class ĠDefault Role Ġ: ĠListener Adapter () Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġon Guild Member Join ( event : ĠGuild Member Join Event ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġguild Ġ= Ġevent . guild ĊĠĠĠĠĠĠĠ Ġval Ġrole Ġ= Ġguild . getDefault Role () Ġ?: Ġreturn ĊĊĠĠĠĠĠĠĠ Ġval Ġmember Ġ= Ġevent . member ĊĠĠĠĠĠĠĠ Ġval Ġself Member Ġ= Ġguild . self Member ĊĠĠĠĠĠĠĠ Ġif Ġ( self Member . has Permission ( Permission . MANAGE _ RO LES ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ&& Ġself Member . can Interact ( member ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ&& Ġself Member . can Interact ( role ) ĊĠĠĠĠĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġguild . add Role To Member ( member , Ġrole ). queue () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }