Skip to main content

is_cross_guild

Function is_cross_guild 

Source
fn is_cross_guild(link: Id<GuildMarker>, source: Id<GuildMarker>) -> bool
Expand description

Returns true when a link crosses a guild boundary.

Roles, permission overwrites and the @everyone id are all guild-local, so check_visibility cannot evaluate a channel in another guild — and the bot may not even be a member of that guild. Such links are refused outright rather than judged.