Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/commands/club.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def autocomplete_existing_club(
async def club_infos(
self, interaction: Interaction, club: Transform[ClubSchema, ClubTransformer]
):
await interaction.response.send(embed=self.club_service.embed(club))
await interaction.response.send_message(embed=self.club_service.embed(club))

@app_commands.command(
name="remove_member",
Expand Down
2 changes: 1 addition & 1 deletion src/services/club.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ async def move_to_bottom(category: CategoryChannel):
await category.move(end=True)
return
other = min(inactives, key=lambda c: c.position)
if (category.position - other.position) <= 1:
if 0 <= (other.position - category.position) <= 1:
# the category is already at the bottom of the list, there is nothing to do
return
await category.move(before=other)