chore: update sern.dev and srizan.dev domains

This commit is contained in:
2023-02-09 18:23:21 +01:00
parent 748e3c4644
commit 0219bf8fb6
2 changed files with 4 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ export default commandModule({
key: process.env.TIME_KEY!,
userid: ctx.user.id,
};
const request = await fetch("https://api.srizan.ml/sern/newTime", {
const request = await fetch("https://api.srizan.dev/sern/newTime", {
method: "POST",
body: JSON.stringify(reqData),
headers: {
@@ -83,7 +83,7 @@ export default commandModule({
case "get": {
const option = options.getMember("user") as GuildMember;
const request = await fetch(
`https://api.srizan.ml/sern/getTime?userid=${option.id}`
`https://api.srizan.dev/sern/getTime?userid=${option.id}`
).catch(() => null);
const data = (await request?.json()) as APIResponse;
@@ -113,7 +113,7 @@ export default commandModule({
}
case "delete": {
const request = await fetch(
`https://api.srizan.ml/sern/deleteTime?userid=${ctx.user.id}&key=${process.env.TIME_KEY}`,
`https://api.srizan.dev/sern/deleteTime?userid=${ctx.user.id}&key=${process.env.TIME_KEY}`,
{
method: "DELETE",
}

View File

@@ -16,7 +16,7 @@ export default eventModule({
const msg = await thread.fetchStarterMessage().catch(() => null);
if (!msg) return thread.setLocked(true);
const list = `• What is your [\`discord.js\`](https://discord.js.org/) version?\n• What is your [\`@sern/handler\`](https://sern-handler.js.org) version?\n• If any error is occuring, what error?`;
const list = `• What is your [\`discord.js\`](https://discord.js.org/) version?\n• What is your [\`@sern/handler\`](https://sern.dev) version?\n• If any error is occuring, what error?`;
const embed = new EmbedBuilder()
.setDescription(