@@ -336,7 +336,7 @@ async def approve_application(
336
336
return
337
337
338
338
await application .update (
339
- application_stauts = ApplicationStatus .APPROVED .value
339
+ application_status = ApplicationStatus .APPROVED .value
340
340
).apply ()
341
341
342
342
await member .add_roles (
@@ -375,7 +375,7 @@ async def deny_application(
375
375
await interaction .response .send_message (embed = embed )
376
376
return
377
377
await application .update (
378
- application_stauts = ApplicationStatus .DENIED .value
378
+ application_status = ApplicationStatus .DENIED .value
379
379
).apply ()
380
380
381
381
await self .notify_for_application_change (
@@ -637,7 +637,7 @@ async def build_application_embed(
637
637
if not new :
638
638
embed .add_field (
639
639
name = "Status" ,
640
- value = application .application_stauts ,
640
+ value = application .application_status ,
641
641
inline = False ,
642
642
)
643
643
embed .set_footer (text = f"User ID: { applicant .id } " )
@@ -659,7 +659,7 @@ async def handle_new_application(
659
659
guild_id = str (applicant .guild .id ),
660
660
applicant_name = applicant .name ,
661
661
applicant_id = str (applicant .id ),
662
- application_stauts = ApplicationStatus .PENDING .value ,
662
+ application_status = ApplicationStatus .PENDING .value ,
663
663
background = background ,
664
664
reason = reason ,
665
665
)
@@ -834,7 +834,7 @@ async def get_applications_by_status(
834
834
list[bot.models.Applications]: The list of applications in a oldest first order
835
835
"""
836
836
query = self .bot .models .Applications .query .where (
837
- self .bot .models .Applications .application_stauts == status .value
837
+ self .bot .models .Applications .application_status == status .value
838
838
).where (self .bot .models .Applications .guild_id == str (guild .id ))
839
839
entry = await query .gino .all ()
840
840
entry .sort (key = lambda entry : entry .application_time )
@@ -857,7 +857,7 @@ async def search_for_pending_application(
857
857
)
858
858
.where (self .bot .models .Applications .guild_id == str (member .guild .id ))
859
859
.where (
860
- self .bot .models .Applications .application_stauts
860
+ self .bot .models .Applications .application_status
861
861
== ApplicationStatus .PENDING .value
862
862
)
863
863
)
@@ -908,7 +908,7 @@ async def execute(self, config: munch.Munch, guild: discord.Guild) -> None:
908
908
" they left"
909
909
)
910
910
await app .update (
911
- application_stauts = ApplicationStatus .REJECTED .value
911
+ application_status = ApplicationStatus .REJECTED .value
912
912
).apply ()
913
913
continue
914
914
@@ -929,7 +929,7 @@ async def execute(self, config: munch.Munch, guild: discord.Guild) -> None:
929
929
f" the `{ role .name } ` role"
930
930
)
931
931
await app .update (
932
- application_stauts = ApplicationStatus .APPROVED .value
932
+ application_status = ApplicationStatus .APPROVED .value
933
933
).apply ()
934
934
if audit_log :
935
935
embed = discord .Embed (title = "Application manage events" )
0 commit comments