nice new update

This commit is contained in:
404invalid-user 2025-01-18 01:27:58 +00:00
parent e136522421
commit 666638c956
136 changed files with 4483 additions and 9190 deletions

View file

@ -0,0 +1,42 @@
import { DataTypes, Sequelize, Model, Optional } from 'sequelize';
export interface BanReactionAttributes {
id: number;
guild: string;
channel: string;
reaction: string;
}
export interface BanReactionCreationAttributes extends Optional<BanReactionAttributes, 'id'> { }
export interface BanReactionInstance
extends Model<BanReactionAttributes, BanReactionCreationAttributes>,
BanReactionAttributes { }
export default function BanRole(sequelize: Sequelize) {
const BanReaction = sequelize.define<BanReactionInstance>('BanReaction', {
id: {
type: DataTypes.INTEGER,
autoIncrement: true,
primaryKey: true,
},
guild: {
type: DataTypes.STRING,
allowNull: false,
},
channel: {
type: DataTypes.STRING,
allowNull: false,
},
reaction: {
type: DataTypes.STRING,
allowNull: false,
},
});
// Sync the model with the database
BanReaction.sync({ alter: true });
return BanReaction;
}