This commit is contained in:
Joren 2024-07-06 20:44:16 +02:00
parent 7eebc01816
commit 2a42301c25
Signed by: Joren
GPG Key ID: 280E33DFBC0F1B55

14
main.go
View File

@ -21,9 +21,9 @@ var (
) )
type Config struct { type Config struct {
Discord Discord `toml:"discord"` Discord Discord `toml:"discord"`
Database Database `toml:"database"` Database Database `toml:"database"`
AdminRoles []string `toml:"admin_roles"` AdminRoles []string `toml:"admin_roles"`
} }
type Discord struct { type Discord struct {
@ -113,7 +113,6 @@ func getUsernameFromMember(member *discordgo.Member) string {
return userName return userName
} }
var ( var (
commands = []discordgo.ApplicationCommand{ commands = []discordgo.ApplicationCommand{
{ {
@ -230,9 +229,9 @@ var (
ParentID: categoryID, ParentID: categoryID,
PermissionOverwrites: []*discordgo.PermissionOverwrite{ PermissionOverwrites: []*discordgo.PermissionOverwrite{
{ {
ID: guildID, ID: guildID,
Type: discordgo.PermissionOverwriteTypeRole, Type: discordgo.PermissionOverwriteTypeRole,
Deny: discordgo.PermissionViewChannel, Deny: discordgo.PermissionViewChannel,
}, },
}, },
}) })
@ -441,4 +440,3 @@ func main() {
db.Close() db.Close()
} }
} }