Fix AllowedMentions error types

[ci skip]
This commit is contained in:
Szymon Uglis 2020-06-28 00:34:48 +02:00
parent 1123727cb8
commit 9ecda16b73

View file

@ -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!");
}