Commit 54fc94e0 authored by VINXIS's avatar VINXIS
Browse files

CO21 -> CO22

parent 2faa9642
......@@ -107,7 +107,7 @@ export class TeamRouter implements IRouter {
}
const role = await App.instance.discordGuild.roles.create({
name: `CO21 TEAM ${name}`,
name: `CO22 TEAM ${name}`,
hoist: false,
mentionable: false,
});
......@@ -156,7 +156,7 @@ export class TeamRouter implements IRouter {
req.team.name = req.query.name as string;
await req.team.save();
await req.team.getDiscordRole().edit({ name: `CO21 TEAM ${req.team.name}` }, "Captain renamed team from " + oldName + " to " + req.team.name);
await req.team.getDiscordRole().edit({ name: `CO22 TEAM ${req.team.name}` }, "Captain renamed team from " + oldName + " to " + req.team.name);
res.json({ error: false, team: await req.team.getInfos(true) });
} catch(e) {
if(!res.headersSent && e.name === "ValidationError")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment