Rename warnings to notes

This commit is contained in:
Tarrgon
2025-05-29 10:34:11 -04:00
parent b5e631a965
commit 41299da489
8 changed files with 97 additions and 98 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
import { ButtonInteraction, Client } from 'discord.js';
import { getWarningMessage } from '../utils/warning-utils';
import { getNoteMessage } from '../utils/note-utils';
export default {
name: 'warning-next',
name: 'note-next',
handler: async function (client: Client, interaction: ButtonInteraction, userId: string, page: string) {
await interaction.deferUpdate();
const message = await getWarningMessage(userId, parseInt(page) + 1);
const message = await getNoteMessage(userId, parseInt(page) + 1);
if (!message) return;
+3 -3
View File
@@ -1,12 +1,12 @@
import { ButtonInteraction, Client} from 'discord.js';
import { getWarningMessage } from '../utils/warning-utils';
import { getNoteMessage } from '../utils/note-utils';
export default {
name: 'warning-previous',
name: 'note-previous',
handler: async function (client: Client, interaction: ButtonInteraction, userId: string, page: string) {
await interaction.deferUpdate();
const message = await getWarningMessage(userId, parseInt(page) - 1);
const message = await getNoteMessage(userId, parseInt(page) - 1);
if (!message) return;