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