/[sudobot]/trunk/src/commands/information/ProfileCommand.ts
ViewVC logotype

Diff of /trunk/src/commands/information/ProfileCommand.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 264 by rakin, Mon Jul 29 17:29:16 2024 UTC revision 280 by rakin, Mon Jul 29 17:29:21 2024 UTC
# Line 4  import DiscordClient from '../../client/ Line 4  import DiscordClient from '../../client/
4  import CommandOptions from '../../types/CommandOptions';  import CommandOptions from '../../types/CommandOptions';
5  import InteractionOptions from '../../types/InteractionOptions';  import InteractionOptions from '../../types/InteractionOptions';
6  import MessageEmbed from '../../client/MessageEmbed';  import MessageEmbed from '../../client/MessageEmbed';
 import e from 'express';  
 import getUser from '../../utils/getUser';  
7  import getMember from '../../utils/getMember';  import getMember from '../../utils/getMember';
8  import { timeSince } from '../../utils/util';  import { timeSince } from '../../utils/util';
9  import { roleMention } from '@discordjs/builders';  import { roleMention } from '@discordjs/builders';
# Line 77  export default class ProfileCommand exte Line 75  export default class ProfileCommand exte
75                  console.log(a);                  console.log(a);
76                                    
77                  if (a.type === 'CUSTOM') {                  if (a.type === 'CUSTOM') {
78                      activities.push(`${a.emoji?.toString()} ${a.state}`);                      activities.push(`${a.emoji?.toString() ?? ''}${a.emoji?.toString() ? ' ' : ''}${a.state}`);
79                  }                  }
80                  else if (a.type === 'LISTENING') {                  else if (a.type === 'LISTENING') {
81                      if (a.name === 'Spotify') {                      if (a.name === 'Spotify') {

Legend:
Removed from v.264  
changed lines
  Added in v.280

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26