diff --git a/models/messages.js b/models/messages.js index dfbace7..c783e6f 100644 --- a/models/messages.js +++ b/models/messages.js @@ -4,8 +4,8 @@ import { DataTypes, Sequelize } from 'sequelize'; * @typedef {Object} Message * @property {string} id A Discord message ID. * @property {(model: Object) => void} hasMany Defines an One-To-Many relationship. - * @property {(conditions: Object) => void} findOne Finds one instance in the database matching the provided condition(-s). - * @property {(conditions: Object) => void} findAll Finds all instances in the database matching the provided condition(-s). + * @property {(conditions: Object) => Promise} findOne Finds one instance in the database matching the provided condition(-s). + * @property {(conditions: Object) => Promise>} findAll Finds all instances in the database matching the provided condition(-s). */ /** @@ -13,7 +13,7 @@ import { DataTypes, Sequelize } from 'sequelize'; * @param {Sequelize} sequelize * @returns {Message} */ -export default function (sequelize) { +export default function(sequelize) { return sequelize.define('Messages', { id: { type: DataTypes.STRING, diff --git a/models/roleEmojiPairs.js b/models/roleEmojiPairs.js index 8eb1b70..1bf216f 100644 --- a/models/roleEmojiPairs.js +++ b/models/roleEmojiPairs.js @@ -7,8 +7,8 @@ import { DataTypes, Deferrable, Sequelize } from 'sequelize'; * @property {string} role A Discord role ID. * @property {string} emoji Either a unicode emoji or a string representation in Discord custom emoji format. * @property {(model: Object) => void} hasMany Defines an One-To-Many relationship. - * @property {(conditions: Object) => void} findOne Finds one instance in the database matching the provided condition(-s). - * @property {(conditions: Object) => void} findAll Finds all instances in the database matching the provided condition(-s). + * @property {(conditions: Object) => Promise} findOne Finds one instance in the database matching the provided condition(-s). + * @property {(conditions: Object) => Promise>} findAll Finds all instances in the database matching the provided condition(-s). */ /** @@ -16,7 +16,7 @@ import { DataTypes, Deferrable, Sequelize } from 'sequelize'; * @param {Sequelize} sequelize * @returns {RoleEmojiPair} */ -export default function (sequelize) { +export default function(sequelize) { return sequelize.define('RoleEmojiPairs', { id: { defaultValue: DataTypes.UUIDV4, diff --git a/models/voiceChannels.js b/models/voiceChannels.js index c2fdc76..9cf3b88 100644 --- a/models/voiceChannels.js +++ b/models/voiceChannels.js @@ -6,8 +6,8 @@ import { DataTypes, Sequelize } from 'sequelize'; * @property {boolean} create Whether or not this channel is registered to create customs when joined. * @property {(string|null)} owner The owner of this channel, if not registered for customs. * @property {(model: Object) => void} hasMany Defines an One-To-Many relationship. - * @property {(conditions: Object) => void} findOne Finds one instance in the database matching the provided condition(-s). - * @property {(conditions: Object) => void} findAll Finds all instances in the database matching the provided condition(-s). + * @property {(conditions: Object) => Promise} findOne Finds one instance in the database matching the provided condition(-s). + * @property {(conditions: Object) => Promise>} findAll Finds all instances in the database matching the provided condition(-s). */ /** @@ -15,7 +15,7 @@ import { DataTypes, Sequelize } from 'sequelize'; * @param {Sequelize} sequelize * @returns {VoiceChannel} */ -export default function (sequelize) { +export default function(sequelize) { return sequelize.define('VoiceChannel', { id: { type: DataTypes.STRING,