ensures the provided channel is in the guild, also checking the api as fallback
(
state: &Rc<RefCell<OpState>>,
rt_ctx: &RuntimeContext,
channel_id_str: &str,
)
| 32 | |
| 33 | // ensures the provided channel is in the guild, also checking the api as fallback |
| 34 | pub(crate) async fn parse_get_guild_channel( |
| 35 | state: &Rc<RefCell<OpState>>, |
| 36 | rt_ctx: &RuntimeContext, |
| 37 | channel_id_str: &str, |
| 38 | ) -> Result<Channel, AnyError> { |
| 39 | get_guild_channel(state, rt_ctx, parse_discord_id(channel_id_str)?).await |
| 40 | } |
| 41 | |
| 42 | pub(crate) async fn get_guild_channel( |
| 43 | state: &Rc<RefCell<OpState>>, |
no test coverage detected