Compare commits
3 Commits
277bb4e4ec
...
aa110f81d1
Author | SHA1 | Date |
---|---|---|
|
aa110f81d1 | |
|
b786709741 | |
|
60e457696a |
|
@ -13,6 +13,9 @@ export type MemberAdditionalAcknowledgement =
|
|||
| "Chair of the Board of Governors"
|
||||
| "Vice Chair of the Board of Governors"
|
||||
| "Voting Seat Member of the Board of Governors"
|
||||
| "Non-Voting Seat Member of the Board of Governors"
|
||||
| "Commissioner of the Contract Review Committee"
|
||||
| "Member of the Contract Review Committee"
|
||||
| string;
|
||||
|
||||
export const MemberGuildRoleIDMap = {
|
||||
|
|
|
@ -26,7 +26,7 @@ export default class Eval extends DiscordInteractionCommand {
|
|||
option.setName("depth").setDescription("The depth of the inspection.").setRequired(false)
|
||||
);
|
||||
|
||||
// this checks against the database and adds all of the partners that are "allowed to perform dev commands"
|
||||
// this checks against the database and adds all the partners that are "allowed to perform dev commands"
|
||||
// doing the database check in the initialization prevents us from having to check the database every time this command is ran
|
||||
PartnerModel.find({ canPerformDevCommands: true }).then((partners) => {
|
||||
for (const partner of partners) {
|
||||
|
@ -68,7 +68,7 @@ export default class Eval extends DiscordInteractionCommand {
|
|||
evaled = "undefined";
|
||||
}
|
||||
} catch (error) {
|
||||
// @ts-ignore
|
||||
// @ts-expect-error No throws in this block return anything other than an error.
|
||||
evaled = error.stack;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
export { default as Eval } from "./Eval";
|
||||
export { default as Partner } from "./Partner";
|
||||
export { default as Ping } from "./Ping";
|
||||
export { default as TLS } from "./TLS";
|
||||
export { default as Whois } from "./Whois";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { GuildMember, User } from "discord.js";
|
||||
import { Guild, GuildMember, User } from "discord.js";
|
||||
import Partner, { PartnerCommissionType, PartnerRoleType } from "../database/Partner";
|
||||
import { FormatNameOptions } from "./MemberUtil";
|
||||
|
||||
|
@ -27,7 +27,10 @@ export default class Formatters {
|
|||
);
|
||||
// if the partner is designated as a KeyHolder, add a [k] to the end of the name
|
||||
// if the partner exists, set the iconURL to the organizational logo
|
||||
if (partner?.isKeyHolder) {
|
||||
if (
|
||||
partner?.isKeyHolder ||
|
||||
("roles" in target && target.roles.cache.has("1014978134573064293"))
|
||||
) {
|
||||
return {
|
||||
text: `${target.displayName} [k]`,
|
||||
iconURL: target.displayAvatarURL(),
|
||||
|
|
Loading…
Reference in New Issue