Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab17126b76 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "legica-dana",
|
"name": "legica-dana",
|
||||||
"version": "2.1.1",
|
"version": "2.1.2",
|
||||||
"main": "src/app.ts",
|
"main": "src/app.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "bun run src/app.ts",
|
"start": "bun run src/app.ts",
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export async function sendDiscordMessage(
|
|||||||
)}`
|
)}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
const promises = client.channels.cache.map(async (channel) => {
|
const promises = client.channels.cache.map(async (channel) => {
|
||||||
try {
|
try {
|
||||||
if (channel.type !== "text") return null;
|
if (channel.type !== "text") return null;
|
||||||
@@ -71,6 +71,9 @@ export async function sendDiscordMessage(
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
await Promise.all(promises);
|
await Promise.all(promises);
|
||||||
|
} catch (err) {
|
||||||
|
console.error(err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user