Skip to content

Commit

Permalink
Closed flow for other options
Browse files Browse the repository at this point in the history
  • Loading branch information
KDwevedi committed Oct 31, 2023
1 parent 2ad34dc commit 6908cb5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,16 @@ def __init__(self):
]]
super().__init__(placeholder="Please select applicable affliliation",max_values=1,min_values=1,options=options)
async def callback(self, interaction:discord.Interaction):
if self.values[0] == "College Chapter" or self.values[0] == "Corporate Chapter":
if self.values[0] == "College Chapter":
chapterView = discord.ui.View()
chapterView.add_item(ChapterSelect(self.values[0]))
await interaction.response.send_message("Please select your institute!", view=chapterView, ephemeral=True)
elif self.values[0] == "Corporate Chapter":
await interaction.response.send_message("We currently don't have any active Corporate Chapters!", ephemeral=True)
elif self.values[0] == "Individual Contributor":
await interaction.response.send_message("Now please Authenticate using Github so we can start awarding your points!",view=AuthenticationView(interaction.user.id), ephemeral=True)





Expand Down

0 comments on commit 6908cb5

Please sign in to comment.