operator [] method

  1. @override
PartialAutoModerationRule operator [](
  1. Snowflake id
)
override

Return a partial instance of the entity with ID id containing no data.

This allows performing API operations without fetching an instance from the API.

Because this method doesn't perform any API checks, there might be no real entity with the correct id. In this case, the object returned may not work with the API correctly.

Implementation

@override
PartialAutoModerationRule operator [](Snowflake id) => PartialAutoModerationRule(id: id, manager: this);