getType method
Returns the corresponding guild type from all guilds with type type
Implementation
@override
GuildType getType(String type) {
return _guildTypes.firstWhere(
(guildType) => guildType.getGuildType() == type,
orElse: () => throw GuildTypeNotFoundException(
"GuildType with type $type was not found"),
);
}