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

Function useCurrentGuildId

frontend/src/modules/guilds/CurrentGuild.tsx:31–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31export function useCurrentGuildId() {
32 const guildId = useContext(CurrentGuildIdContext);
33 if (!guildId) {
34 throw new Error("No guild id context available")
35 }
36
37 return guildId
38}

Callers 3

GuildScriptPageFunction · 0.90
ScriptSettingsFunction · 0.90
SidebarScriptItemFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected