mirror of
https://github.com/sern-handler/sern-community
synced 2026-06-28 02:32:19 +00:00
chore: done
This commit is contained in:
@@ -50,7 +50,7 @@ export default commandModule({
|
||||
async execute(ctx, [, options]) {
|
||||
const url = options.getString("plugin", true) as string;
|
||||
const name = ctx.client.cache?.findKey((d) => d.download_url === url);
|
||||
let data = await fetch(url, { method: "GET" })
|
||||
let data = await fetch(url)
|
||||
.then((r) => r.text())
|
||||
.catch(() => null);
|
||||
if (!data || !name)
|
||||
|
||||
Reference in New Issue
Block a user