Skip to content

Commit 542d94f

Browse files
committed
fix(addons/vote): ideathon participant can vote to makethon
1 parent cb7bd03 commit 542d94f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

addons/vote.py

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ async def vote_callback(self, ctx: dico_interaction.InteractionContext):
7272
(f"{team_role.id},", name),
7373
)
7474
elif ctx.data.custom_id.endswith(Config.MAKETHON_NAME):
75+
if 922108075471687720 not in ctx.member.roles:
76+
return await ctx.send("❌ 아이디어톤만 참여하신 경우 투표하실 수 없습니다.")
7577
if make_voted:
7678
return await self.cancel_vote(ctx, "메이크톤", team_role, name)
7779
# return await ctx.send("❌ 이미 해당 봇의 메이크톤 분야에 투표했습니다.")

0 commit comments

Comments
 (0)