Rename warnings to notes
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user