Replace 'AllowPingEveryoneHere' with 'AllowPingEveryone'

This commit is contained in:
Reach
2021-05-05 18:40:41 +02:00
parent 3ecf6fb1d6
commit c4ba9c9ca9
3 changed files with 4 additions and 4 deletions

View File

@@ -85,7 +85,7 @@ type ChannelMember struct {
type ChannelMembers []ChannelMember
type Protocol struct {
AllowPingEveryoneHere bool // discord
AllowPingEveryone bool // discord
AllowPingRoles bool // discord
AllowPingUsers bool // discord
AuthCode string // steam

View File

@@ -12,7 +12,7 @@ import (
func (b *Bdiscord) getAllowedMentions() *discordgo.MessageAllowedMentions {
// Allow only the mention types that are not disabled by the config (default is all allowed)
allowedMentionTypes := make([]discordgo.AllowedMentionType, 0, 3)
if b.GetBool("AllowPingEveryoneHere") || !b.IsKeySet("AllowPingEveryoneHere") {
if b.GetBool("AllowPingEveryone") || !b.IsKeySet("AllowPingEveryone") {
allowedMentionTypes = append(allowedMentionTypes, discordgo.AllowedMentionTypeEveryone)
}
if b.GetBool("AllowPingRoles") || !b.IsKeySet("AllowPingRoles") {

View File

@@ -848,8 +848,8 @@ Server="yourservername"
## All settings below can be reloaded by editing the file.
## They are also all optional.
# AllowPingEveryoneHere controls if @everyone and @here mentions should send a mention/ping to users. (default true)
AllowPingEveryoneHere=true
# AllowPingEveryone controls if @everyone and @here mentions should send a mention/ping to users. (default true)
AllowPingEveryone=true
# AllowPingRoles controls if @role mentions should send a mention/ping to users. (default true)
AllowPingRoles=true