File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -918,7 +918,7 @@ async def get_strikes( # type: ignore[misc]
918918 )
919919
920920 @discord .slash_command ( # type: ignore[misc, no-untyped-call]
921- name = "decrease -strikes" ,
921+ name = "decrement -strikes" ,
922922 description = "Decrement the number of strikes a user has by 1." ,
923923 )
924924 @discord .option ( # type: ignore[misc, no-untyped-call]
@@ -933,9 +933,10 @@ async def decrement_strikes( # type: ignore[misc]
933933 self , ctx : "TeXBotApplicationContext" , str_user_id : str
934934 ) -> None :
935935 """
936- Definition & callback response of the "decrease -strikes" command.
936+ Definition & callback response of the "decrement -strikes" command.
937937
938- The "decrease-strikes" command removes a strike from the given member.
938+ The "decrement-strikes" command removes a strike from the given member.
939+ If the user only has one strike, the object will be deleted from the database.
939940 """
940941 try :
941942 strike_member : discord .Member = await self .bot .get_member_from_str_id (
@@ -972,6 +973,12 @@ async def decrement_strikes( # type: ignore[misc]
972973
973974 strike_obj .strikes -= 1
974975 await strike_obj .asave ()
976+ await ctx .respond (
977+ content = (
978+ f"Successfully removed a strike from { strike_member .mention } . "
979+ f"User now has { strike_obj .strikes } strikes."
980+ )
981+ )
975982
976983
977984class StrikeContextCommandsCog (BaseStrikeCog ):
You can’t perform that action at this time.
0 commit comments