Skip to content

Commit 783550d

Browse files
authored
fix: move_to_botton and /club info (#23)
1 parent ce3b07c commit 783550d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/commands/club.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async def autocomplete_existing_club(
5757
async def club_infos(
5858
self, interaction: Interaction, club: Transform[ClubSchema, ClubTransformer]
5959
):
60-
await interaction.response.send(embed=self.club_service.embed(club))
60+
await interaction.response.send_message(embed=self.club_service.embed(club))
6161

6262
@app_commands.command(
6363
name="remove_member",

src/services/club.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ async def move_to_bottom(category: CategoryChannel):
244244
await category.move(end=True)
245245
return
246246
other = min(inactives, key=lambda c: c.position)
247-
if (category.position - other.position) <= 1:
247+
if 0 <= (other.position - category.position) <= 1:
248248
# the category is already at the bottom of the list, there is nothing to do
249249
return
250250
await category.move(before=other)

0 commit comments

Comments
 (0)