utility.presence: fix
This commit is contained in:
		
							parent
							
								
									b9f03bcf64
								
							
						
					
					
						commit
						31db6f8408
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -713,8 +713,8 @@ presence.callback = async function (msg, line) {
 | 
			
		|||
    if (!target.presence) return `**${target.username}#${target.discriminator}** is offline.`;
 | 
			
		||||
 | 
			
		||||
    let icons = "";
 | 
			
		||||
    for (const platform in target.presence.client_status) {
 | 
			
		||||
      const status = target.presence.client_status[platform];
 | 
			
		||||
    for (const platform of Object.keys(target.clientStatus)) {
 | 
			
		||||
      const status = target.clientStatus[platform];
 | 
			
		||||
 | 
			
		||||
      icons += PRESENCE_ICONS[platform][status] + " ";
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			@ -722,8 +722,8 @@ presence.callback = async function (msg, line) {
 | 
			
		|||
    const embeds = [];
 | 
			
		||||
    const files = [];
 | 
			
		||||
 | 
			
		||||
    for (const index in target.presence.activities) {
 | 
			
		||||
      const activity = target.presence.activities[index];
 | 
			
		||||
    for (const index in target.activities) {
 | 
			
		||||
      const activity = target.activities[index];
 | 
			
		||||
      if (activity.type == 4) {
 | 
			
		||||
        const embed = {};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue