lib/mangadex/report_reason.rb in mangadex-5.5.8 vs lib/mangadex/report_reason.rb in mangadex-5.7.5
- old
+ new
@@ -8,18 +8,21 @@
:version
class << self
def list(category)
args = Mangadex::Internal::Definition.validate({category: category}, {
- category: { accepts: %w(manga chapter scanlation_group user), required: true },
+ category: { accepts: %w(manga chapter scanlation_group user author), required: true },
})
Mangadex::Internal::Request.get(
'/report/reasons/%{category}' % args,
)
end
def create(**args)
+ # TODO: create a "deprecated" log function
+ puts("[DEPRECATED] Use Mangadex::Report.create(...) instead.")
+
Mangadex::Internal::Request.post(
'/report',
payload: Mangadex::Internal::Definition.validate(args, {
category: { accepts: %w(manga chapter scanlation_group user), required: true },
reason: { accepts: String, required: true },