Skip to content

Commit

Permalink
added featured to random-game cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
StarManTheGamer committed May 24, 2023
1 parent 14b22df commit 0dd93ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/random/randomGame.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Message, MessageEmbed } from 'discord.js'
import { dateUtils } from '../../utils/dateUtils.js'
import { randomUtils } from '../../utils/randomUtils.js'
import emojiUtils from '../../utils/emojiUtils.js'

export async function randomGame (message: Message, args: string[]) {
const randomData = await randomUtils.randomize('https://api.polytoria.com/v1/places/', function (response: any) {
Expand All @@ -18,7 +19,7 @@ export async function randomGame (message: Message, args: string[]) {
const creator = data.creator

const embed = new MessageEmbed({
title: data.name,
title: (data.name + ' ' + (data.isFeatured === true ? emojiUtils.star : '')),
description: data.description,
thumbnail: {
url: `${data.icon}`
Expand Down

0 comments on commit 0dd93ce

Please sign in to comment.