Skip to main content

MentionPolicy

Namespace: Meshmakers.Octo.MeshAdapter.Nodes.Load

High-level mention-filtering policy for ToDiscord@1. Applied by setting the Discord allowed_mentions.parse field appropriately.

public enum MentionPolicy

Inheritance ObjectValueTypeEnumMentionPolicy
Implements IComparable, ISpanFormattable, IFormattable, IConvertible

Fields

NameValueDescription
None0No mentions in the message ping anyone (default). Sends parse: [].
Users1Only user mentions (<@id>) can ping. Sends parse: ["users"].
Roles2Only role mentions (<@&id>) can ping. Sends parse: ["roles"].
UsersAndRoles3User and role mentions can ping; @everyone/@here is suppressed. Sends parse: ["users","roles"].
All4All mentions ping, including @everyone and @here. Omits allowed_mentions; matches Discord's default.
Custom5Use the raw object resolved from AllowedMentionsPath.