@@ -54,11 +54,8 @@ class GitHubCog(GHUtilsCog, GroupCog, group_name="gh"):
5454
5555 # /gh
5656
57- @app_commands .command (
58- description = l10n .command_description ("gh issue" ),
59- )
57+ @app_commands .command ()
6058 @app_commands .rename (reference = "issue" )
61- @l10n .describe (gh_issue = ["reference" ])
6259 @l10n .describe_common ("visibility" )
6360 async def issue (
6461 self ,
@@ -72,11 +69,8 @@ async def issue(
7269 embed = _create_issue_embed (* reference ),
7370 )
7471
75- @app_commands .command (
76- description = l10n .command_description ("gh pr" ),
77- )
72+ @app_commands .command ()
7873 @app_commands .rename (reference = "pr" )
79- @l10n .describe (gh_pr = ["reference" ])
8074 @l10n .describe_common ("visibility" )
8175 async def pr (
8276 self ,
@@ -90,11 +84,8 @@ async def pr(
9084 embed = _create_issue_embed (* reference ),
9185 )
9286
93- @app_commands .command (
94- description = l10n .command_description ("gh commit" ),
95- )
87+ @app_commands .command ()
9688 @app_commands .rename (reference = "commit" )
97- @l10n .describe (gh_commit = ["reference" ])
9889 @l10n .describe_common ("visibility" )
9990 async def commit (
10091 self ,
@@ -135,10 +126,7 @@ async def commit(
135126
136127 await respond_with_visibility (interaction , visibility , embed = embed )
137128
138- @app_commands .command (
139- description = l10n .command_description ("gh repo" ),
140- )
141- @l10n .describe (gh_repo = ["repo" ])
129+ @app_commands .command ()
142130 @l10n .describe_common ("visibility" )
143131 async def repo (
144132 self ,
@@ -173,9 +161,7 @@ async def repo(
173161
174162 await respond_with_visibility (interaction , visibility , embed = embed )
175163
176- @app_commands .command (
177- description = l10n .command_description ("gh login" ),
178- )
164+ @app_commands .command ()
179165 async def login (self , interaction : Interaction ):
180166 user_id = interaction .user .id
181167 login_id = str (uuid .uuid4 ())
@@ -197,9 +183,7 @@ async def login(self, interaction: Interaction):
197183 ephemeral = True ,
198184 )
199185
200- @app_commands .command (
201- description = l10n .command_description ("gh logout" ),
202- )
186+ @app_commands .command ()
203187 async def logout (self , interaction : Interaction ):
204188 with self .bot .db_session () as session :
205189 # TODO: this should delete the authorization too, but idk how
@@ -218,9 +202,7 @@ async def logout(self, interaction: Interaction):
218202 ephemeral = True ,
219203 )
220204
221- @app_commands .command (
222- description = l10n .command_description ("gh status" ),
223- )
205+ @app_commands .command ()
224206 @l10n .describe_common ("visibility" )
225207 async def status (
226208 self ,
@@ -278,11 +260,8 @@ async def status(
278260
279261 await respond_with_visibility (interaction , visibility , embed = embed )
280262
281- class Search (SubGroup , description = l10n .command_description ("gh search" )):
282- @app_commands .command (
283- description = l10n .command_description ("gh search files" ),
284- )
285- @l10n .describe (gh_search_files = ["repo" , "query" , "ref" , "exact" , "limit" ])
263+ class Search (SubGroup ):
264+ @app_commands .command ()
286265 @l10n .describe_common ("visibility" )
287266 async def files (
288267 self ,
0 commit comments