Whether the command should have an associated telemetry event. Emitting telemetry takes a long time so the answer is usually no.
(&self)
| 133 | /// |
| 134 | /// Emitting telemetry takes a long time so the answer is usually no. |
| 135 | pub fn valid_for_telemetry(&self) -> bool { |
| 136 | matches!(self, Self::Chat(_) | Self::Login(_) | Self::Profile | Self::Issue(_)) |
| 137 | } |
| 138 | |
| 139 | pub fn requires_auth(&self) -> bool { |
| 140 | matches!(self, Self::Chat(_) | Self::Profile) |