Modifier and Type | Class and Description |
---|---|
static class |
AllowedMentions.Builder
A builder for creating
AllowedMentions objects. |
static class |
AllowedMentions.Type
An allowed mentions type, grouped into role mentions, user mentions and everyone mentions (includes @everyone
and @here).
|
Modifier and Type | Method and Description |
---|---|
static AllowedMentions.Builder |
builder()
Create a builder for this
AllowedMentions class. |
static AllowedMentions.Builder |
builder(AllowedMentions template)
Copy an existing
AllowedMentions object to a new builder. |
AllowedMentions.Builder |
mutate()
Copy this
AllowedMentions object to a new builder. |
static AllowedMentions |
suppressAll()
Create an
AllowedMentions object that will suppress all mentions. |
static AllowedMentions |
suppressEveryone()
Create an
AllowedMentions object that will suppress @everyone and @here mentions. |
discord4j.discordjson.json.AllowedMentionsData |
toData()
Map this
AllowedMentions object to a AllowedMentionsData JSON |
public static AllowedMentions.Builder builder()
AllowedMentions
class. Building this object without any configuration is
equivalent to suppressing all mentions.public static AllowedMentions.Builder builder(AllowedMentions template)
AllowedMentions
object to a new builder.template
- the allowed mentions object to copypublic static AllowedMentions suppressAll()
AllowedMentions
object that will suppress all mentions.public static AllowedMentions suppressEveryone()
AllowedMentions
object that will suppress @everyone and @here mentions.public AllowedMentions.Builder mutate()
AllowedMentions
object to a new builder.public discord4j.discordjson.json.AllowedMentionsData toData()
AllowedMentions
object to a AllowedMentionsData
JSON