(application_id: str, permissions: int = BOT_PERMISSIONS)
| 83 | |
| 84 | |
| 85 | def 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 | |
| 94 | def update_vm_env(token: str, slash_command: str = "") -> bool: |