Skip to content

Commit ca9724f

Browse files
committed
removing unnecessary lines
1 parent 14ce811 commit ca9724f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/services/club.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from urllib.parse import urljoin
66

77
import discord
8-
from discord import ChannelType, Embed, utils
8+
from discord import Embed, utils
99
from pydantic import BaseModel, PlainSerializer
1010

1111
from src.settings import BASE_DIR, Settings
@@ -117,10 +117,10 @@ async def create_club(self, club: ClubSchema, guild: Guild):
117117
),
118118
treasurer: discord.PermissionOverwrite(read_messages=True),
119119
}
120-
annonce = await category.create_text_channel(
121-
f"Annonce-{club.name}", overwrites=overwrites_channel
120+
121+
await category.create_text_channel(
122+
f"Annonce-{club.name}", overwrites=overwrites_channel, news=True, position=0
122123
)
123-
await annonce.edit(type=ChannelType.news)
124124
await category.create_text_channel(f"Général-{club.name}")
125125
await category.create_voice_channel(f"Général-{club.name}")
126126
new_club = DiscordClub(

0 commit comments

Comments
 (0)