Tabs
This commit is contained in:
parent
7eebc01816
commit
2a42301c25
14
main.go
14
main.go
@ -21,9 +21,9 @@ var (
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
Discord Discord `toml:"discord"`
|
||||
Database Database `toml:"database"`
|
||||
AdminRoles []string `toml:"admin_roles"`
|
||||
Discord Discord `toml:"discord"`
|
||||
Database Database `toml:"database"`
|
||||
AdminRoles []string `toml:"admin_roles"`
|
||||
}
|
||||
|
||||
type Discord struct {
|
||||
@ -113,7 +113,6 @@ func getUsernameFromMember(member *discordgo.Member) string {
|
||||
return userName
|
||||
}
|
||||
|
||||
|
||||
var (
|
||||
commands = []discordgo.ApplicationCommand{
|
||||
{
|
||||
@ -230,9 +229,9 @@ var (
|
||||
ParentID: categoryID,
|
||||
PermissionOverwrites: []*discordgo.PermissionOverwrite{
|
||||
{
|
||||
ID: guildID,
|
||||
Type: discordgo.PermissionOverwriteTypeRole,
|
||||
Deny: discordgo.PermissionViewChannel,
|
||||
ID: guildID,
|
||||
Type: discordgo.PermissionOverwriteTypeRole,
|
||||
Deny: discordgo.PermissionViewChannel,
|
||||
},
|
||||
},
|
||||
})
|
||||
@ -441,4 +440,3 @@ func main() {
|
||||
db.Close()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user