Replace 'AllowPingEveryoneHere' with 'AllowPingEveryone'
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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") {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user