mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +00:00
Add GuildArchives.getUrl for getting the archive entry URL
This commit is contained in:
parent
a2b7038b71
commit
429653c66d
3 changed files with 9 additions and 5 deletions
|
@ -90,4 +90,8 @@ export class GuildArchives extends BaseRepository {
|
|||
|
||||
return this.create([headerStr, messagesStr].join("\n\n"), expiresAt);
|
||||
}
|
||||
|
||||
getUrl(baseUrl, archiveId) {
|
||||
return baseUrl ? `${baseUrl}/archives/${archiveId}` : `Archive ID: ${archiveId}`;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue