mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-07 19:17:19 +00:00
Automod work. Add config examples to automod.
This commit is contained in:
parent
5a9ad943a2
commit
f41d280fab
11 changed files with 539 additions and 258 deletions
|
@ -127,6 +127,14 @@ export class GuildSavedMessages extends BaseGuildRepository {
|
|||
return query.getMany();
|
||||
}
|
||||
|
||||
getMultiple(messageIds: string[]): Promise<SavedMessage[]> {
|
||||
return this.messages
|
||||
.createQueryBuilder()
|
||||
.where("guild_id = :guild_id", { guild_id: this.guildId })
|
||||
.andWhere("id IN (:messageIds)", { messageIds })
|
||||
.getMany();
|
||||
}
|
||||
|
||||
async create(data) {
|
||||
const isPermanent = this.toBePermanent.has(data.id);
|
||||
if (isPermanent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue