///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
export const Random: string;
import { GatewayIntentBits } from "discord-api-types/gateway/v10";
import { Partials } from "discord.js";
import { ActivityType } from "discord-api-types/payloads/v10/gateway";
import { Message } from "discord.js";
declare class command {
/**
* @param {_Client} client extends discord.js.Client
* @param {CommandOptions} options extends Lib.Options
*/
constructor(client: _Client, options: CommandOptions);
name: string;
aliases: string[];
description: string;
needsAdmin: boolean;
hidden: boolean;
client: _Client;
}
declare class _Client extends Client {
/**
*
* @param {ClientOptions} options
*/
constructor(options: ClientOptions);
commands: any[];
rustCommits: rustCommits;
freegames: FreeGames;
/**
* Register a group of commands under the folder commands
* @param {String} name - Name of the group.
* @param {String} folderName - Name of the folder.
*/
enableCommands(): Promise;
/**
*
* @param {String} name - Command Name
* @returns {command}
*/
onList(name: string): command;
RoleSetter(): Promise;
}
export namespace ErrorType {
const Permissions: string;
const Arguments: string;
const NoArguments: string;
const NotOnTheList: string;
const OldMessages: string;
}
export class Channel {
/**
*
* @param {String} channelID
*/
constructor(channelID: string);
channel: string;
}
export class ErrorMessage {
/**
* @param {_Client} client
*/
constructor(client: _Client);
client: _Client;
/**
*
* @param {ErrorType} errorType
* @param {Message} message
* @param {String[]} extraMessages
*/
send(errorType: {
Permissions: string;
Arguments: string;
NoArguments: string;
NotOnTheList: string;
OldMessages: string;
}, message: Message, extraMessages: string[]): Promise;
}
declare class AnilistCli {
/**
*
* @param {String} ss - Search Query
* @returns {AnimeInfo}
*/
searchAnime(ss: string): AnimeInfo;
/**
*
* @param {String} ss - Search Query
* @returns {CharInfo}
*/
searchChar(ss: string): CharInfo;
/**
*
* @param {String} ss - Search Query
* @returns {MangaInfo}
*/
searchManga(ss: string): MangaInfo;
}
declare class CommandOptions {
/**
*
* @param {String} name
* @param {String[]} aliases
* @param {String} description
* @param {Boolean} needsAdmin
* @param {Boolean} hidden
*/
constructor(name: string, aliases: string[], description: string, needsAdmin: boolean, hidden: boolean);
name: string;
aliases: string[];
description: string;
needsAdmin: boolean;
hidden: boolean;
}
import { Client } from "discord.js";
declare class rustCommits {
/**
*
* @param {_Client} client
*/
constructor(client: _Client);
client: _Client;
update(): Promise;
channels: {
new (doc?: DocType, fields?: any, options?: boolean | import("mongoose").AnyObject): import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
};
aggregate(pipeline?: import("mongoose").PipelineStage[], options?: import("mongodb").AggregateOptions, callback?: import("mongoose").Callback): import("mongoose").Aggregate;
aggregate(pipeline: import("mongoose").PipelineStage[], callback?: import("mongoose").Callback): import("mongoose").Aggregate;
base: typeof import("mongoose");
baseModelName: string;
castObject(obj: import("mongoose").AnyObject, options?: {
ignoreCastErrors?: boolean;
}): {
cID: string;
for: string;
name?: string;
};
bulkWrite(writes: import("mongodb").AnyBulkWriteOperation<{
cID: string;
for: string;
name?: string;
}>[], options: import("mongodb").BulkWriteOptions & import("mongoose").MongooseBulkWriteOptions, callback: import("mongoose").Callback): void;
bulkWrite(writes: import("mongodb").AnyBulkWriteOperation<{
cID: string;
for: string;
name?: string;
}>[], callback: import("mongoose").Callback): void;
bulkWrite(writes: import("mongodb").AnyBulkWriteOperation<{
cID: string;
for: string;
name?: string;
}>[], options?: import("mongodb").BulkWriteOptions & import("mongoose").MongooseBulkWriteOptions): Promise;
bulkSave(documents: import("mongoose").Document[], options?: import("mongodb").BulkWriteOptions & {
timestamps?: boolean;
}): Promise;
collection: import("mongoose").Collection;
count(callback?: import("mongoose").Callback): import("mongoose").Query & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
count(filter: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
countDocuments(filter: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
countDocuments(callback?: import("mongoose").Callback): import("mongoose").Query & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
create>(docs: ({
cID: string;
for: string;
name?: string;
} | DocContents)[], options?: import("mongoose").SaveOptions): Promise<(import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
})[]>;
create>(docs: ({
cID: string;
for: string;
name?: string;
} | DocContents_1)[], options?: import("mongoose").SaveOptions, callback?: import("mongoose").Callback<(import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
})[]>): Promise<(import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
})[]>;
create>(docs: ({
cID: string;
for: string;
name?: string;
} | DocContents_2)[], callback: import("mongoose").Callback<(import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
})[]>): void;
create>(doc: {
cID: string;
for: string;
name?: string;
} | DocContents_3): Promise & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>;
create>(...docs: ({
cID: string;
for: string;
name?: string;
} | DocContents_4)[]): Promise<(import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
})[]>;
create>(doc: {
cID: string;
for: string;
name?: string;
} | DocContents_5, callback: import("mongoose").Callback & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>): void;
createCollection(options: import("mongodb").CreateCollectionOptions & Pick, "expires">, callback: import("mongoose").Callback>): void;
createCollection(callback: import("mongoose").Callback>): void;
createCollection(options?: import("mongodb").CreateCollectionOptions & Pick, "expires">): Promise>;
db: import("mongoose").Connection;
deleteMany(filter?: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").CallbackWithoutResult): import("mongoose").Query & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
deleteMany(filter: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, callback: import("mongoose").CallbackWithoutResult): import("mongoose").Query & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
deleteMany(callback: import("mongoose").CallbackWithoutResult): import("mongoose").Query & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
deleteOne(filter?: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").CallbackWithoutResult): import("mongoose").Query & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
deleteOne(filter: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, callback: import("mongoose").CallbackWithoutResult): import("mongoose").Query & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
deleteOne(callback: import("mongoose").CallbackWithoutResult): import("mongoose").Query & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
events: NodeJS.EventEmitter;
findById & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(id: any, projection?: import("mongoose").ProjectionType<{
cID: string;
for: string;
name?: string;
}>, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query;
findById & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(id: any, projection?: import("mongoose").ProjectionType<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query;
findOne & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter?: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, projection?: import("mongoose").ProjectionType<{
cID: string;
for: string;
name?: string;
}>, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query;
findOne & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter?: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, projection?: import("mongoose").ProjectionType<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query;
findOne & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter?: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query;
hydrate(obj: any, projection?: import("mongoose").AnyObject, options?: {
setters?: boolean;
}): import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
};
init(callback?: import("mongoose").CallbackWithoutResult): Promise & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>;
insertMany(docs: ({
cID: string;
for: string;
name?: string;
} | DocContents_6)[], options: import("mongoose").InsertManyOptions & {
lean: true;
}, callback: import("mongoose").Callback, {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>[]>): void;
insertMany(docs: ({
cID: string;
for: string;
name?: string;
} | DocContents_7)[], options: import("mongoose").InsertManyOptions & {
rawResult: true;
}, callback: import("mongoose").Callback>): void;
insertMany(docs: ({
cID: string;
for: string;
name?: string;
} | DocContents_8)[], callback: import("mongoose").Callback, {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>, {}, {}>[]>): void;
insertMany(doc: DocContents_9, options: import("mongoose").InsertManyOptions & {
lean: true;
}, callback: import("mongoose").Callback, {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>[]>): void;
insertMany(doc: DocContents_10, options: import("mongoose").InsertManyOptions & {
rawResult: true;
}, callback: import("mongoose").Callback>): void;
insertMany(doc: DocContents_11, options: import("mongoose").InsertManyOptions & {
lean?: false;
}, callback: import("mongoose").Callback, {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>, {}, {}>[]>): void;
insertMany(doc: DocContents_12, callback: import("mongoose").Callback, {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>, {}, {}>[]>): void;
insertMany(docs: ({
cID: string;
for: string;
name?: string;
} | DocContents_13)[], options: import("mongoose").InsertManyOptions & {
lean: true;
}): Promise, {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>[]>;
insertMany(docs: ({
cID: string;
for: string;
name?: string;
} | DocContents_14)[], options: import("mongoose").InsertManyOptions & {
rawResult: true;
}): Promise>;
insertMany(docs: ({
cID: string;
for: string;
name?: string;
} | DocContents_15)[]): Promise, {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>, {}, {}>[]>;
insertMany(doc: DocContents_16, options: import("mongoose").InsertManyOptions & {
lean: true;
}): Promise, {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>[]>;
insertMany(doc: DocContents_17, options: import("mongoose").InsertManyOptions & {
rawResult: true;
}): Promise>;
insertMany(doc: DocContents_18, options: import("mongoose").InsertManyOptions): Promise, {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>, {}, {}>[]>;
insertMany(doc: DocContents_19): Promise, {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>, {}, {}>[]>;
modelName: string;
populate(docs: any[], options: string | import("mongoose").PopulateOptions | import("mongoose").PopulateOptions[], callback?: import("mongoose").Callback<(import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
})[]>): Promise<(import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
})[]>;
populate(doc: any, options: string | import("mongoose").PopulateOptions | import("mongoose").PopulateOptions[], callback?: import("mongoose").Callback & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>): Promise & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>;
validate(callback?: import("mongoose").CallbackWithoutResult): Promise;
validate(optional: any, callback?: import("mongoose").CallbackWithoutResult): Promise;
validate(optional: any, pathsToValidate: import("mongoose").PathsToValidate, callback?: import("mongoose").CallbackWithoutResult): Promise;
watch(pipeline?: Record[], options?: import("mongodb").ChangeStreamOptions & {
hydrate?: boolean;
}): import("mongodb").ChangeStream>;
$where(argument: string | Function): import("mongoose").Query<(import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
})[], import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
discriminators: {
[name: string]: import("mongoose").Model;
};
translateAliases(raw: any): any;
distinct(field: string, filter?: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
estimatedDocumentCount(options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
exists(filter: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, callback: import("mongoose").Callback<{
_id: import("mongoose").Types.ObjectId;
}>): import("mongoose").Query, "_id">, import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
exists(filter: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>): import("mongoose").Query<{
_id: import("mongoose").Types.ObjectId;
}, import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
find & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, projection?: import("mongoose").ProjectionType<{
cID: string;
for: string;
name?: string;
}>, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query;
find & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, projection?: import("mongoose").ProjectionType<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query;
find & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query;
find & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(callback?: import("mongoose").Callback): import("mongoose").Query;
findByIdAndDelete & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(id?: any, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: (err: NativeError, doc: ResultDoc_9, res: any) => void): import("mongoose").Query;
findByIdAndRemove & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(id?: any, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: (err: NativeError, doc: ResultDoc_10, res: any) => void): import("mongoose").Query;
findByIdAndUpdate & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(id: any, update: import("mongoose").UpdateQuery<{
cID: string;
for: string;
name?: string;
}>, options: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}> & {
rawResult: true;
}, callback?: (err: NativeError, doc: any, res: any) => void): import("mongoose").Query, ResultDoc_11, {}, {
cID: string;
for: string;
name?: string;
}>;
findByIdAndUpdate & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(id: any, update: import("mongoose").UpdateQuery<{
cID: string;
for: string;
name?: string;
}>, options: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}> & {
upsert: true;
} & import("mongoose").ReturnsNewDoc, callback?: (err: NativeError, doc: ResultDoc_12, res: any) => void): import("mongoose").Query;
findByIdAndUpdate & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(id?: any, update?: import("mongoose").UpdateQuery<{
cID: string;
for: string;
name?: string;
}>, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: (err: NativeError, doc: ResultDoc_13, res: any) => void): import("mongoose").Query;
findByIdAndUpdate & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(id: any, update: import("mongoose").UpdateQuery<{
cID: string;
for: string;
name?: string;
}>, callback: (err: NativeError, doc: ResultDoc_14, res: any) => void): import("mongoose").Query;
findOneAndDelete & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter?: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: (err: NativeError, doc: ResultDoc_15, res: any) => void): import("mongoose").Query;
findOneAndRemove & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter?: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: (err: NativeError, doc: ResultDoc_16, res: any) => void): import("mongoose").Query;
findOneAndReplace & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, replacement: import("mongoose").AnyObject | {
cID: string;
for: string;
name?: string;
}, options: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}> & {
rawResult: true;
}, callback?: (err: NativeError, doc: any, res: any) => void): import("mongoose").Query, ResultDoc_17, {}, {
cID: string;
for: string;
name?: string;
}>;
findOneAndReplace & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, replacement: import("mongoose").AnyObject | {
cID: string;
for: string;
name?: string;
}, options: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}> & {
upsert: true;
} & import("mongoose").ReturnsNewDoc, callback?: (err: NativeError, doc: ResultDoc_18, res: any) => void): import("mongoose").Query;
findOneAndReplace & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter?: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, replacement?: import("mongoose").AnyObject | {
cID: string;
for: string;
name?: string;
}, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: (err: NativeError, doc: ResultDoc_19, res: any) => void): import("mongoose").Query;
findOneAndUpdate & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, update: import("mongoose").UpdateQuery<{
cID: string;
for: string;
name?: string;
}>, options: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}> & {
rawResult: true;
}, callback?: (err: NativeError, doc: any, res: any) => void): import("mongoose").Query, ResultDoc_20, {}, {
cID: string;
for: string;
name?: string;
}>;
findOneAndUpdate & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, update: import("mongoose").UpdateQuery<{
cID: string;
for: string;
name?: string;
}>, options: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}> & {
upsert: true;
} & import("mongoose").ReturnsNewDoc, callback?: (err: NativeError, doc: ResultDoc_21, res: any) => void): import("mongoose").Query;
findOneAndUpdate & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter?: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, update?: import("mongoose").UpdateQuery<{
cID: string;
for: string;
name?: string;
}>, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: (err: NativeError, doc: {
cID: string;
for: string;
name?: string;
}, res: any) => void): import("mongoose").Query;
geoSearch & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter?: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, options?: import("mongoose").GeoSearchOptions, callback?: import("mongoose").Callback): import("mongoose").Query;
mapReduce(o: import("mongoose").MapReduceOptions<{
cID: string;
for: string;
name?: string;
}, Key, Value>, callback?: import("mongoose").Callback): Promise;
remove & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter?: any, callback?: import("mongoose").CallbackWithoutResult): import("mongoose").Query;
remove & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter?: any, options?: import("mongoose").RemoveOptions, callback?: import("mongoose").CallbackWithoutResult): import("mongoose").Query;
replaceOne & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter?: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, replacement?: import("mongoose").AnyObject | {
cID: string;
for: string;
name?: string;
}, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query;
schema: import("mongoose").Schema<{
cID: string;
for: string;
name?: string;
}, import("mongoose").Model<{
cID: string;
for: string;
name?: string;
}, any, any, any, any>, {}, {}, {}, {}, "type", {
cID: string;
for: string;
name?: string;
}>;
update & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter?: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery<{
cID: string;
for: string;
name?: string;
}>, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query;
updateMany & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter?: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery<{
cID: string;
for: string;
name?: string;
}>, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query;
updateOne & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(filter?: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery<{
cID: string;
for: string;
name?: string;
}>, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query;
where & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(path: string, val?: any): import("mongoose").Query;
where & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(obj: object): import("mongoose").Query;
where & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>(): import("mongoose").Query;
addListener(eventName: string | symbol, listener: (...args: any[]) => void): import("mongoose").Model<{
cID: string;
for: string;
name?: string;
}, {}, {}, {}, import("mongoose").Schema, {}, {}, {}, {}, "type", {
cID: string;
for: string;
name?: string;
}>>;
on(eventName: string | symbol, listener: (...args: any[]) => void): import("mongoose").Model<{
cID: string;
for: string;
name?: string;
}, {}, {}, {}, import("mongoose").Schema, {}, {}, {}, {}, "type", {
cID: string;
for: string;
name?: string;
}>>;
once(eventName: string | symbol, listener: (...args: any[]) => void): import("mongoose").Model<{
cID: string;
for: string;
name?: string;
}, {}, {}, {}, import("mongoose").Schema, {}, {}, {}, {}, "type", {
cID: string;
for: string;
name?: string;
}>>;
removeListener(eventName: string | symbol, listener: (...args: any[]) => void): import("mongoose").Model<{
cID: string;
for: string;
name?: string;
}, {}, {}, {}, import("mongoose").Schema, {}, {}, {}, {}, "type", {
cID: string;
for: string;
name?: string;
}>>;
off(eventName: string | symbol, listener: (...args: any[]) => void): import("mongoose").Model<{
cID: string;
for: string;
name?: string;
}, {}, {}, {}, import("mongoose").Schema, {}, {}, {}, {}, "type", {
cID: string;
for: string;
name?: string;
}>>;
removeAllListeners(event?: string | symbol): import("mongoose").Model<{
cID: string;
for: string;
name?: string;
}, {}, {}, {}, import("mongoose").Schema, {}, {}, {}, {}, "type", {
cID: string;
for: string;
name?: string;
}>>;
setMaxListeners(n: number): import("mongoose").Model<{
cID: string;
for: string;
name?: string;
}, {}, {}, {}, import("mongoose").Schema, {}, {}, {}, {}, "type", {
cID: string;
for: string;
name?: string;
}>>;
getMaxListeners(): number;
listeners(eventName: string | symbol): Function[];
rawListeners(eventName: string | symbol): Function[];
emit(eventName: string | symbol, ...args: any[]): boolean;
listenerCount(eventName: string | symbol): number;
prependListener(eventName: string | symbol, listener: (...args: any[]) => void): import("mongoose").Model<{
cID: string;
for: string;
name?: string;
}, {}, {}, {}, import("mongoose").Schema, {}, {}, {}, {}, "type", {
cID: string;
for: string;
name?: string;
}>>;
prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): import("mongoose").Model<{
cID: string;
for: string;
name?: string;
}, {}, {}, {}, import("mongoose").Schema, {}, {}, {}, {}, "type", {
cID: string;
for: string;
name?: string;
}>>;
eventNames(): (string | symbol)[];
discriminator(name: string | number, schema: import("mongoose").Schema, {}, {}, {}, {}, "type", {
[x: string]: any;
}>, value?: string | number | import("mongoose").Schema.Types.ObjectId | import("mongoose").DiscriminatorOptions): import("mongoose").Model;
discriminator(name: string | number, schema: import("mongoose").Schema>, value?: string | number | import("mongoose").Schema.Types.ObjectId | import("mongoose").DiscriminatorOptions): U;
createIndexes(options: import("mongodb").CreateIndexesOptions, callback: import("mongoose").CallbackWithoutResult): void;
createIndexes(callback: import("mongoose").CallbackWithoutResult): void;
createIndexes(options?: import("mongodb").CreateIndexesOptions): Promise;
diffIndexes(options: Record, callback: import("mongoose").Callback): void;
diffIndexes(callback: import("mongoose").Callback): void;
diffIndexes(options?: Record): Promise;
ensureIndexes(options: import("mongodb").CreateIndexesOptions, callback: import("mongoose").CallbackWithoutResult): void;
ensureIndexes(callback: import("mongoose").CallbackWithoutResult): void;
ensureIndexes(options?: import("mongodb").CreateIndexesOptions): Promise;
listIndexes(callback: import("mongoose").Callback): void;
listIndexes(): Promise;
syncIndexes(options: import("mongoose").SyncIndexesOptions, callback: import("mongoose").Callback): void;
syncIndexes(options?: import("mongoose").SyncIndexesOptions): Promise;
startSession(options: import("mongodb").ClientSessionOptions, callback: import("mongoose").Callback): void;
startSession(callback: import("mongoose").Callback): void;
startSession(options?: import("mongodb").ClientSessionOptions): Promise;
get: (callback: any, limit: any) => void;
};
/**
*
* @param {channelM} channels
*/
resolveChannels(channels: {
new (doc?: DocType, fields?: any, options?: boolean | import("mongoose").AnyObject): import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
};
aggregate(pipeline?: import("mongoose").PipelineStage[], options?: import("mongodb").AggregateOptions, callback?: import("mongoose").Callback): import("mongoose").Aggregate;
aggregate(pipeline: import("mongoose").PipelineStage[], callback?: import("mongoose").Callback): import("mongoose").Aggregate;
base: typeof import("mongoose");
baseModelName: string;
castObject(obj: import("mongoose").AnyObject, options?: {
ignoreCastErrors?: boolean;
}): {
cID: string;
for: string;
name?: string;
};
bulkWrite(writes: import("mongodb").AnyBulkWriteOperation<{
cID: string;
for: string;
name?: string;
}>[], options: import("mongodb").BulkWriteOptions & import("mongoose").MongooseBulkWriteOptions, callback: import("mongoose").Callback): void;
bulkWrite(writes: import("mongodb").AnyBulkWriteOperation<{
cID: string;
for: string;
name?: string;
}>[], callback: import("mongoose").Callback): void;
bulkWrite(writes: import("mongodb").AnyBulkWriteOperation<{
cID: string;
for: string;
name?: string;
}>[], options?: import("mongodb").BulkWriteOptions & import("mongoose").MongooseBulkWriteOptions): Promise;
bulkSave(documents: import("mongoose").Document[], options?: import("mongodb").BulkWriteOptions & {
timestamps?: boolean;
}): Promise;
collection: import("mongoose").Collection;
count(callback?: import("mongoose").Callback): import("mongoose").Query & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
count(filter: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
countDocuments(filter: import("mongoose").FilterQuery<{
cID: string;
for: string;
name?: string;
}>, options?: import("mongoose").QueryOptions<{
cID: string;
for: string;
name?: string;
}>, callback?: import("mongoose").Callback): import("mongoose").Query & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
countDocuments(callback?: import("mongoose").Callback): import("mongoose").Query & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}, {}, {
cID: string;
for: string;
name?: string;
}>;
create>(docs: ({
cID: string;
for: string;
name?: string;
} | DocContents)[], options?: import("mongoose").SaveOptions): Promise<(import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
})[]>;
create>(docs: ({
cID: string;
for: string;
name?: string;
} | DocContents_1)[], options?: import("mongoose").SaveOptions, callback?: import("mongoose").Callback<(import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
})[]>): Promise<(import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
})[]>;
create>(docs: ({
cID: string;
for: string;
name?: string;
} | DocContents_2)[], callback: import("mongoose").Callback<(import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
})[]>): void;
create>(doc: {
cID: string;
for: string;
name?: string;
} | DocContents_3): Promise & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>;
create>(...docs: ({
cID: string;
for: string;
name?: string;
} | DocContents_4)[]): Promise<(import("mongoose").Document & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
})[]>;
create>(doc: {
cID: string;
for: string;
name?: string;
} | DocContents_5, callback: import("mongoose").Callback & {
cID: string;
for: string;
name?: string;
} & {
_id: import("mongoose").Types.ObjectId;
}>): void;
createCollection(options: import("mongodb").CreateCollectionOptions & Pick, "expires">, callback: import("mongoose").Callback>): void;
createCollection