mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +00:00
starboard: post-merge tweaks; use preprocessStaticConfig; utilize overrides rather than config properties when possible
This commit is contained in:
parent
ba2873a29a
commit
581cf80feb
2 changed files with 145 additions and 152 deletions
|
@ -26,12 +26,12 @@ export class GuildStarboardMessages extends BaseGuildRepository {
|
|||
.getMany();
|
||||
}
|
||||
|
||||
async getMessagesForStarboardIdAndSourceMessageId(starboardId: string, sourceMessageId: string) {
|
||||
async getMatchingStarboardMessages(starboardChannelId: string, sourceMessageId: string) {
|
||||
return this.allStarboardMessages
|
||||
.createQueryBuilder()
|
||||
.where("guild_id = :gid", { gid: this.guildId })
|
||||
.where("guild_id = :guildId", { guildId: this.guildId })
|
||||
.andWhere("message_id = :msgId", { msgId: sourceMessageId })
|
||||
.andWhere("starboard_channel_id = :sbId", { sbId: starboardId })
|
||||
.andWhere("starboard_channel_id = :channelId", { channelId: starboardChannelId })
|
||||
.getMany();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue