mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-07 11:07:19 +00:00
Split BaseRepository into non-guild and guild
BaseRepository includes all the non-guild-specific functionality, such as with() and getRelations(). BaseGuildRepository includes guild-specific functionality, such as getInstance().
This commit is contained in:
parent
1aa549e391
commit
d54897acdd
39 changed files with 162 additions and 156 deletions
|
@ -33,8 +33,8 @@ export class NameHistoryPlugin extends ZeppelinPlugin<INameHistoryPluginConfig>
|
|||
}
|
||||
|
||||
onLoad() {
|
||||
this.nicknameHistory = GuildNicknameHistory.getInstance(this.guildId);
|
||||
this.usernameHistory = UsernameHistory.getInstance(null);
|
||||
this.nicknameHistory = GuildNicknameHistory.getGuildInstance(this.guildId);
|
||||
this.usernameHistory = new UsernameHistory();
|
||||
}
|
||||
|
||||
@d.command("names", "<userId:userid>")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue