mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +00:00
tags: add !tag list command
This commit is contained in:
parent
b0cd8762f1
commit
435de37dc8
2 changed files with 25 additions and 1 deletions
|
@ -10,6 +10,14 @@ export class GuildTags extends BaseRepository {
|
|||
this.tags = getRepository(Tag);
|
||||
}
|
||||
|
||||
async all(): Promise<Tag[]> {
|
||||
return this.tags.find({
|
||||
where: {
|
||||
guild_id: this.guildId
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
async find(tag): Promise<Tag> {
|
||||
return this.tags.findOne({
|
||||
where: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue