Skip to content

Commit

Permalink
Added mentorship category for signin, query, and dquery commands (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
c0untingNumbers authored Sep 28, 2024
1 parent 23fb3d0 commit aee01e9
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 2 deletions.
6 changes: 6 additions & 0 deletions commands/slash/dquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ func DQuery() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *disc
Name: "Wireless",
Value: "Wireless",
},
{
Name: "Mentorship",
Value: "Mentorship",
},
{
Name: "WiCyS",
Value: "WiCyS",
Expand Down Expand Up @@ -134,6 +138,8 @@ func DQuery() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *disc
entSigninType = signin.TypeWiCyS
case "Vulnerability Research":
entSigninType = signin.TypeVulnerabilityResearch
case "Mentorship":
entSigninType = signin.TypeMentorship
case "Other":
entSigninType = signin.TypeOther
case "All":
Expand Down
6 changes: 6 additions & 0 deletions commands/slash/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ func Query() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *disco
Name: "WiCyS",
Value: "WiCyS",
},
{
Name: "Mentorship",
Value: "Mentorship",
},
{
Name: "Other",
Value: "Other",
Expand Down Expand Up @@ -169,6 +173,8 @@ func Query() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *disco
entSigninType = signin.TypeWiCyS
case "Vulnerability Research":
entSigninType = signin.TypeVulnerabilityResearch
case "Mentorship":
entSigninType = signin.TypeMentorship
case "Other":
entSigninType = signin.TypeOther
case "All":
Expand Down
6 changes: 6 additions & 0 deletions commands/slash/signin.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ func Signin() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *disc
Name: "WiCyS",
Value: "WiCyS",
},
{
Name: "Mentorship",
Value: "Mentorship",
},
{
Name: "Other",
Value: "Other",
Expand Down Expand Up @@ -138,6 +142,8 @@ func Signin() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *disc
entSigninType = signin.TypeWiCyS
case "Vulnerability Research":
entSigninType = signin.TypeVulnerabilityResearch
case "Mentorship":
entSigninType = signin.TypeMentorship
case "Other":
entSigninType = signin.TypeOther
}
Expand Down
2 changes: 1 addition & 1 deletion ent/migrate/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ent/schema/signin.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func (Signin) Fields() []ent.Field {
"Ops",
"Ops IG",
"Vulnerability Research",
"Mentorship",
"Other",
),
}
Expand Down
3 changes: 2 additions & 1 deletion ent/signin/signin.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aee01e9

Please sign in to comment.