@prisma/client#BodyguardTier TypeScript Examples

The following examples show how to use @prisma/client#BodyguardTier. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: constants.ts    From Mandroc with GNU General Public License v3.0 6 votes vote down vote up
bodyguardTiers: Record<BodyguardTier, BodyguardStats> = {
  [BodyguardTier.Rookie]: {
    price: 1000,
    safe: 0.31
  },
  [BodyguardTier.Gold]: {
    price: 5000,
    safe: 0.62
  },
  [BodyguardTier.Deluxe]: {
    price: 10000,
    safe: 0.73
  },
  [BodyguardTier.Chad]: {
    price: 20000,
    safe: 0.9
  }
}
Example #2
Source File: RobCommand.ts    From Mandroc with GNU General Public License v3.0 5 votes vote down vote up
failureMessages: Record<BodyguardTier, (target: GuildMember) => string> = {
  Chad: g => `NANI!?!?! **${g.user.tag}** had a **Chad** tier bodyguard <:monkaMEGA:515436779893948416>`,
  Deluxe: g => `Ohk... so **${g.user.tag}** had a good bodyguard. Better luck next time.`,
  Gold: g => `Wow. You failed to rob **${g.user.tag}**`,
  Rookie: g => `Lol. You really failed to rob **${g.user.tag}**...`
}