package Ġme . d div ad . judge bot . arguments čĊč Ċ import Ġcom . gitlab . k ord lib . core . entity . Member č Ċ import Ġme . d div ad . judge bot . services . Permissions Service č Ċ import Ġme . j ake j mat t son . discord kt . api . arguments . Argument Result č Ċ import Ġme . j ake j mat t son . discord kt . api . arguments . Argument Type č Ċ import Ġme . j ake j mat t son . discord kt . api . dsl . Command Event č Ċ import Ġme . j ake j mat t son . discord kt . api . arguments . Success č Ċ import Ġme . j ake j mat t son . discord kt . api . arguments . Error č Ċ import Ġme . j ake j mat t son . discord kt . api . extensions . to Snow flake OrNull čĊč Ċ open Ġclass ĠLower Member Arg ( override Ġval Ġname : ĠString Ġ= Ġ" Lower Member Arg ") Ġ: ĠArgument Type < Member >() Ġ{ čĊĠĠĠ Ġcompanion Ġobject Ġ: ĠLower Member Arg () čĊčĊĠĠĠ Ġoverride Ġfun Ġgenerate Examples ( event : ĠCommand Event <* >) Ġ= Ġmutable ListOf ("@ User ", Ġ" 1 9 7 7 8 0 6 9 7 8 6 6 3 0 5 5 3 6 ", Ġ" 3 0 2 1 3 4 5 4 3 6 3 9 5 1 1 0 5 0 ") čĊčĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġconvert ( arg : ĠString , Ġargs : ĠList < String >, Ġevent : ĠCommand Event < *> ): ĠArgument Result < Member > Ġ{ čĊĠĠĠĠĠĠĠ Ġval Ġpermissions Service Ġ= Ġevent . discord . get Injection Objects ( Permissions Service :: class ) čĊĠĠĠĠĠĠĠ Ġval Ġguild Ġ= Ġevent . guild Ġ?: Ġreturn ĠError (" No Ġguild Ġfound ") čĊčĊĠĠĠĠĠĠĠ Ġval Ġmember Ġ= Ġarg . to Snow flake OrNull ()?. let Ġ{ Ġguild . get Member OrNull ( it ) Ġ} Ġ?: Ġreturn ĠError (" Not Ġfound ") čĊčĊĠĠĠĠĠĠĠ Ġreturn Ġwhen Ġ{ čĊĠĠĠĠĠĠĠĠĠĠĠ Ġevent . author . as Member ( event . guild !!. id ). is High er Rank ed Than ( permissions Service , Ġmember ) Ġ-> čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠError (" You Ġdon 't Ġhave Ġthe Ġpermission Ġto Ġuse Ġthis Ġcommand Ġon Ġthe Ġtarget Ġuser .") čĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> ĠSuccess ( member ) čĊĠĠĠĠĠĠĠ Ġ} čĊĠĠĠ Ġ} čĊĠĠĠ Ġoverride Ġfun Ġformat Data ( data : ĠMember ) Ġ= Ġ"@ ${ data . tag }" č Ċ } čĊč Ċ suspend Ġfun ĠMember . is High er Rank ed Than ( permissions : ĠPermissions Service , Ġtarget Member : ĠMember ) Ġ= čĊĠĠĠĠĠĠĠ Ġpermissions . get Permission Rank ( this ) Ġ< Ġpermissions . get Permission Rank ( target Member ) čĊčĊ