Skip to content

Commit

Permalink
commands(server info): add link to server page
Browse files Browse the repository at this point in the history
Signed-off-by: TRACTION <[email protected]>
  • Loading branch information
iamtraction committed Jun 4, 2023
1 parent 52e8e8f commit b984f7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/server/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @copyright 2022
*/
import { ChannelType, ChatInputCommandInteraction, time } from "discord.js";
import { Command, Logger } from "@bastion/tesseract";
import { Client, Command, Logger } from "@bastion/tesseract";

import GuildModel from "../../models/Guild.js";
import { COLORS, isPublicBastion } from "../../utils/constants.js";
Expand Down Expand Up @@ -33,7 +33,7 @@ class ChannelInfoCommand extends Command {
color: COLORS.PRIMARY,
author: {
name: interaction.guild.name,
// TODO: server page - url: ,
url: (interaction.client as Client).locales.getConstant("bastion.website") + "/servers/" + interaction.guild.id,
},
title: (interaction.guild.partnered ? "Partnered" : interaction.guild.verified ? "Verified" : "") + " Server",
// TODO: badges - description: ,
Expand Down

0 comments on commit b984f7b

Please sign in to comment.