Fix AllowedMentions error types
[ci skip]
This commit is contained in:
parent
1123727cb8
commit
9ecda16b73
|
@ -61,7 +61,7 @@ class AllowedMentions implements Builder {
|
|||
|
||||
if (_users.isNotEmpty) {
|
||||
if (!_allowUsers) {
|
||||
throw Exception(
|
||||
throw ArgumentError(
|
||||
"Invalid configuration of allowed mentions! Allowed `user` and blacklisted users at the same time!");
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ class AllowedMentions implements Builder {
|
|||
|
||||
if (_roles.isNotEmpty) {
|
||||
if (!_allowRoles) {
|
||||
throw Exception(
|
||||
throw ArgumentError(
|
||||
"Invalid configuration of allowed mentions! Allowed `roles` and blacklisted roles at the same time!");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue