(&self, _arg: ())
| 435 | |
| 436 | impl EasyOpsHandlerASync for EasyOpsHandler { |
| 437 | async fn discord_get_guild(&self, _arg: ()) -> Result<Guild, anyhow::Error> { |
| 438 | let rt_ctx = get_rt_ctx(&self.state); |
| 439 | |
| 440 | match rt_ctx |
| 441 | .bot_state |
| 442 | .get_guild(rt_ctx.guild_id) |
| 443 | .map_err(|err| anyhow::anyhow!("error calling state api: {}", err)) |
| 444 | .await? |
| 445 | { |
| 446 | Some(c) => Ok(c.into()), |
| 447 | None => Err(anyhow::anyhow!("guild not in state")), |
| 448 | } |
| 449 | } |
| 450 | |
| 451 | async fn discord_get_message( |
| 452 | &self, |
nothing calls this directly
no test coverage detected