Heres my code:
Censor.init({
// Model attributes are defined here
guildId: {
type: DataTypes.BIGINT,
allowNull: false,
unique: true
},
censored: {
type: DataTypes.ARRAY(DataTypes.STRING),
}
}, {
// Other model options go here
sequelize, // We need to pass the connection instance
modelName: 'Censor' // We need to choose the model name
});
How do I append elements to that array? Update method overwrites the array