MCPcopy Create free account
hub / github.com/Botloader/botloader / parse_get_guild_channel

Function parse_get_guild_channel

components/runtime/src/extensions/mod.rs:34–40  ·  view source on GitHub ↗

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,
)

Source from the content-addressed store, hash-verified

32
33// ensures the provided channel is in the guild, also checking the api as fallback
34pub(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
42pub(crate) async fn get_guild_channel(
43 state: &Rc<RefCell<OpState>>,

Calls 2

get_guild_channelFunction · 0.85
parse_discord_idFunction · 0.85

Tested by

no test coverage detected