/[sudobot]/trunk/src/commands/settings/SetStatusCommand.ts
ViewVC logotype

Diff of /trunk/src/commands/settings/SetStatusCommand.ts

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

revision 71 by rakin, Mon Jul 29 17:28:28 2024 UTC revision 344 by rakin, Mon Jul 29 17:29:40 2024 UTC
# Line 1  Line 1 
1  import { ActivityType, ClientPresenceStatus, CommandInteraction, ExcludeEnum, GuildMember, Interaction, Message, PresenceStatus, PresenceStatusData } from 'discord.js';  import { ClientPresenceStatus, CommandInteraction, ExcludeEnum, Message } from 'discord.js';
2  import BaseCommand from '../../utils/structures/BaseCommand';  import BaseCommand from '../../utils/structures/BaseCommand';
3  import DiscordClient from '../../client/Client';  import DiscordClient from '../../client/Client';
4  import CommandOptions from '../../types/CommandOptions';  import CommandOptions from '../../types/CommandOptions';
5  import InteractionOptions from '../../types/InteractionOptions';  import InteractionOptions from '../../types/InteractionOptions';
 import MessageEmbed from '../../client/MessageEmbed';  
6  import { ActivityTypes } from 'discord.js/typings/enums';  import { ActivityTypes } from 'discord.js/typings/enums';
7  import { fetchEmoji } from '../../utils/Emoji';  import { fetchEmoji } from '../../utils/Emoji';
8    
# Line 40  export default class SetStatusCommand ex Line 39  export default class SetStatusCommand ex
39          else {          else {
40              activity = options.args.join(' ');              activity = options.args.join(' ');
41          }          }
42            
43          await client.randomStatus.update(activity, type, status);          await client.randomStatus.config(activity, type);
44            await client.randomStatus.update(status);
45    
46          await message.reply({          await message.reply({
47              content: (await fetchEmoji('check'))?.toString() + ' Status updated.'              content: (await fetchEmoji('check'))?.toString() + ' Status updated.'

Legend:
Removed from v.71  
changed lines
  Added in v.344

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26