public static class AllowedMentions.Builder extends Object
Modifier and Type | Method and Description |
---|---|
AllowedMentions.Builder |
allowRole(Snowflake... roleId)
Add roles to the allowed roles list
|
AllowedMentions.Builder |
allowRole(Snowflake roleId)
Add a role to the allowed roles list
|
AllowedMentions.Builder |
allowUser(Snowflake... userId)
Add users to the allowed users list
|
AllowedMentions.Builder |
allowUser(Snowflake userId)
Add a user to the allowed users list
|
AllowedMentions |
build()
Build the
AllowedMentions object |
AllowedMentions.Builder |
parseType(AllowedMentions.Type... type)
Add types to the parsed types list
|
AllowedMentions.Builder |
parseType(AllowedMentions.Type type)
Add a type to the parsed types list
|
public AllowedMentions.Builder parseType(AllowedMentions.Type type)
type
- the type to parsepublic AllowedMentions.Builder allowUser(Snowflake userId)
userId
- the user to allowpublic AllowedMentions.Builder allowRole(Snowflake roleId)
roleId
- the role to allowpublic AllowedMentions.Builder parseType(AllowedMentions.Type... type)
type
- the types to parsepublic AllowedMentions.Builder allowUser(Snowflake... userId)
userId
- the users to allowpublic AllowedMentions.Builder allowRole(Snowflake... roleId)
roleId
- the roles to allowpublic AllowedMentions build()
AllowedMentions
object