console.log(client.logTime(),LogPrefix('PunishmentLog'),`${GuildMember?.user?.username??User?.username??'No user data'}${time?['warn','kick'].includes(type)?'and no duration set':`and ${time} (duration)`:''} was used in /${interaction.commandName} for ${reason}`);
(client.channels.cache.get(client.config.mainServer.channels.punishment_log)asDiscord.TextChannel).send({embeds:[newclient.embed().setColor(client.config.embedColor).setAuthor({name: interaction?.user?.username,iconURL: interaction?.user?.displayAvatarURL({size:2048})}).setTitle('Punishment Log').setDescription(`${GuildMember?.user?.username??User?.username??'No user data'}${time?['warn','kick'].includes(client.punishments.type)?'and no duration set':`and ${time} (duration)`:''} was used in \`/${interaction.commandName}\` for \`${reason}\``).setTimestamp()]});