MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / build_invite_url

Function build_invite_url

scripts/setup_discord.py:85–91  ·  view source on GitHub ↗
(application_id: str, permissions: int = BOT_PERMISSIONS)

Source from the content-addressed store, hash-verified

83
84
85def build_invite_url(application_id: str, permissions: int = BOT_PERMISSIONS) -> str:
86 return (
87 f"https://discord.com/oauth2/authorize"
88 f"?client_id={application_id}"
89 f"&permissions={permissions}"
90 f"&scope=bot%20applications.commands"
91 )
92
93
94def update_vm_env(token: str, slash_command: str = "") -> bool:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected