createScanlationGroup method
Future<Scanlation>
createScanlationGroup({
- required String name,
- required String website,
- required String ircServer,
- required String ircChannel,
- required String discord,
- required String contactEmail,
- required String description,
- required String twitter,
- required String mangaUpdates,
- required bool inactive,
- required String publishDelay,
- required String sessionToken,
inherited
Endpoint used: POST /group
Creates a Scanlation Group managed by the user identified by it's sessionToken
or UUID
and returns an http response containing the group's information after being created.
Implementation
Future<Scanlation> createScanlationGroup({
required String name,
required String website,
required String ircServer,
required String ircChannel,
required String discord,
required String contactEmail,
required String description,
required String twitter,
required String mangaUpdates,
required bool inactive,
required String publishDelay,
required String sessionToken,
}) async {
var response = await createScanlationGroupResponse(
name,
website,
ircServer,
ircChannel,
discord,
contactEmail,
description,
twitter,
mangaUpdates,
inactive,
publishDelay,
sessionToken,
);
try {
return Scanlation.fromJson(jsonDecode(response.body));
} on Exception {
throw MangadexServerException(jsonDecode(response.body));
}
}