let user = message.mentions.users.first() || client.users.cache.get(args[0]) || message.author let spotify = user.presence.activities.filter(x => x.name == 'Spotify' && x.type == 'LISTENING')[0]; if (!spotify) return message.channel.send(`${user.username} Kullanıcısı Spotify'da müzik dinlemiyor.`) console.log(spotify) let image = `https://i.scdn.co/image/${spotify.assets.largeImage.slice(8)}`; const card = new canvacord.Spotify() .setAuthor(spotify.state) .setAlbum(spotify.assets.largeText) .setStartTimestamp(spotify.timestamps.start) .setEndTimestamp(spotify.timestamps.end) .setImage(image) .setBackground("COLOR", "000001") .setTitle(spotify.details); card.build().then(spo => message.channel.send(new discord.MessageAttachment(spo, "Spotify.png")))