feat: add extensive test suite

This commit is contained in:
2026-08-30 11:33:53 +07:00 Unverified
parent 061cce00dc
commit 8359c7272e
131 changed files with 8717 additions and 2200 deletions
+14
View File
@@ -0,0 +1,14 @@
export function discordAuthorizationUrl(config: {
clientId: string;
redirectUri: string;
state: string;
}) {
const params = new URLSearchParams({
client_id: config.clientId,
response_type: "code",
redirect_uri: config.redirectUri,
scope: "identify guilds.join guilds",
state: config.state,
});
return `https://discord.com/oauth2/authorize?${params}`;
}