We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12b1a7b commit bf0f4d2Copy full SHA for bf0f4d2
src/controllers/groupInvite.ts
@@ -15,11 +15,12 @@ export async function groupInvite(
15
return discordTextResponse(`<@&${roleId}> is not a valid group.`);
16
}
17
18
- const groupName = group.name.replace(/^group-/, "");
+ const groupName = group.name.replace(/^group-/, "").replace(/-/g, " ");
19
+ const encodedGroupName = encodeURIComponent(groupName);
20
21
return discordTextResponse(
22
`<@${userId}> join the group <@&${roleId}> via the link below:\n ${
23
config(env).DASHBOARD_SITE_URL
- }/groups/?dev=true&name=${groupName}`
24
+ }/groups/?dev=true&name=${encodedGroupName}`
25
);
26
0 commit comments