discordjs-giveaways
Version:
A customisable giveaways manager for Discord.js v14 and mysql
92 lines (91 loc) • 2.38 kB
TypeScript
import { DataTypes, Model } from 'sequelize';
export declare class GiveawaysSequelizeModel extends Model {
message_id: string;
channel_id: string;
guild_id: string;
reward: string;
hoster_id: string;
winnerCount: number;
ends_at: Date;
ended: boolean;
required_roles: string[];
denied_roles: string[];
bonus_roles: string[];
required_servers: {
name: string;
id: string;
invitation: string;
}[];
participants: string[];
winners: string[];
}
export declare const giveawaySequelizeAttributes: {
guild_id: {
type: DataTypes.TextDataTypeConstructor;
allowNull: boolean;
};
channel_id: {
type: DataTypes.TextDataTypeConstructor;
allowNull: boolean;
};
message_id: {
type: DataTypes.TextDataTypeConstructor;
allowNull: boolean;
};
hoster_id: {
type: DataTypes.TextDataTypeConstructor;
allowNull: boolean;
};
reward: {
type: DataTypes.TextDataTypeConstructor;
allowNull: boolean;
};
winnerCount: {
type: DataTypes.IntegerDataTypeConstructor;
allowNull: boolean;
defaultValue: number;
};
endsAt: {
type: DataTypes.DateDataTypeConstructor;
allowNull: boolean;
};
participants: {
type: DataTypes.AbstractDataTypeConstructor;
allowNull: boolean;
defaultValue: string[];
};
required_roles: {
type: DataTypes.AbstractDataTypeConstructor;
allowNull: boolean;
defaultValue: string[];
};
denied_roles: {
type: DataTypes.AbstractDataTypeConstructor;
allowNull: boolean;
defaultValue: string[];
};
bonus_roles: {
type: DataTypes.AbstractDataTypeConstructor;
allowNull: boolean;
defaultValue: string[];
};
required_servers: {
type: DataTypes.AbstractDataTypeConstructor;
allowNull: boolean;
defaultValue: {
name: string;
id: string;
invitation: string;
}[];
};
winners: {
type: DataTypes.AbstractDataTypeConstructor;
allowNull: boolean;
defaultValue: string[];
};
ended: {
type: DataTypes.AbstractDataTypeConstructor;
allowNull: boolean;
defaultValue: boolean;
};
};