Skip to content

Commit

Permalink
fix: always full uppercase requiem ages
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Nov 2, 2021
1 parent 8b27e7f commit e656ca7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/embeds/UserInfoEmbed.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class UserInfoEmbed extends BaseEmbed {
};

if (member) {
this.description = member.presence?.activities?.[0]
? (member.presence.activities?.[0].state || member.presence.activities?.[0].name)
this.description = member?.presence?.activities?.[0]
? (member?.presence?.activities?.[0].state || member?.presence?.activities?.[0].name)
: 'No Game';

this.fields = this.fields.concat([
Expand Down
2 changes: 1 addition & 1 deletion src/interactions/warframe/WhatsIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module.exports = class WhatsIn extends require('../../models/Interaction') {
// args
const tier = toTitleCase(interaction.options.get('relic_era').value);
const query = toTitleCase(interaction.options.get('query').value);
const data = await ctx.ws.relic(tier, query);
const data = await ctx.ws.relic(tier, tier.toLowerCase() === 'requiem' ? query.toUpperCase() : query);
if (!data || !Object.keys(data).length) return interaction.reply('Sorry, no such relic');
const embed = new WhatsInEmbed(null, data, tier, query);
return interaction.reply({ embeds: [embed], ephemeral: ctx.ephemerate });
Expand Down

0 comments on commit e656ca7

Please sign in to comment.