Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion commands/owner/csClassPoll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function split_list(list: Array<any>, max_list_len: number) {
function create_option_from_class(_class: Class): MessageSelectOptionData {
return {
label: _class.CODE,
value: _class.UUID,
value: _class.CODE,
description: _class.TITLE,
}
}
Expand Down
45 changes: 0 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@
"discord.js": "^13.9.2",
"mongoose": "^6.2.2",
"path": "^0.12.7",
"short-uuid": "^4.2.0",
"ts-node": "^10.5.0",
"typescript": "^4.5.5",
"wokcommands": "^1.5.3"
}
}
}
2 changes: 1 addition & 1 deletion rolesOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export async function addNewRole(member: GuildMember, type: string, id: string)
// This function is triggered when a user changes their role, it adds the new role to the user
let role;
if (type === "class") {
role = await classModel.findOne({ UUID: id });
role = await classModel.findOne({ CODE: id });
} else if (type === "staff") {
role = await staffModel.findOne({ ROLE_NAME: id });
} else if (type === "year") {
Expand Down