Fix join/leave message

This commit is contained in:
Supositware 2022-10-10 19:07:53 +02:00
parent e1c6c9dc39
commit 118954f795

View file

@ -1,6 +1,8 @@
import fs from 'node:fs';
export function rand(text, interaction) {
interaction.author = interaction.user;
if (interaction) {
interaction.author = interaction.user;
}
// Find a value in an array of objects in Javascript - https://stackoverflow.com/a/12462387
function search(nameKey, myArray) {
for (let i = 0; i < myArray.length; i++) {