Skip to content

Commit 92fbfae

Browse files
committed
remove hardcoding id
1 parent 26188f4 commit 92fbfae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/commands/club.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ async def create_club(
126126
await interaction.followup.send(f"Le club : {club.name} existe déjà...")
127127
else:
128128
guild = interaction.guild
129-
channel_club = utils.get(guild.channels, id=1428320894610309121)
130-
mess = await channel_club.send(
129+
id_channel_autorole = utils.get(guild.channels, name="club")
130+
mess = await id_channel_autorole.send(
131131
f"Réagi à ce message pour rejoindre le club {club.name}"
132132
)
133133

0 commit comments

Comments
 (0)