3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

Rename serverInfo() abstraction to getServerInfoEmbed()

Consistent with getUserInfoEmbed()
This commit is contained in:
Dragory 2020-08-05 17:40:20 +03:00
parent 1df00d8548
commit 6f30356065
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
2 changed files with 6 additions and 3 deletions

View file

@ -5,7 +5,10 @@ import { CategoryChannel, EmbedOptions, Guild, RESTChannelInvite, TextChannel, V
import moment from "moment-timezone";
import humanizeDuration from "humanize-duration";
export async function serverInfo(pluginData: PluginData<UtilityPluginType>, serverId: string): Promise<EmbedOptions> {
export async function getServerInfoEmbed(
pluginData: PluginData<UtilityPluginType>,
serverId: string,
): Promise<EmbedOptions> {
const thisServer = serverId === pluginData.guild.id ? pluginData.guild : null;
const [restGuild, guildPreview] = await Promise.all([
thisServer