Moved to bun
This commit is contained in:
@@ -33,6 +33,7 @@ export const topSub = new SlashCommandSubcommandBuilder()
|
||||
|
||||
const cmd: SubCommand = async ({ interaction }) => {
|
||||
await interaction.deferReply()
|
||||
await redis.connect()
|
||||
|
||||
const query = interaction.options.getString("query")!
|
||||
const type = interaction.options.getString("type") || "ign"
|
||||
@@ -227,6 +228,7 @@ const cmd: SubCommand = async ({ interaction }) => {
|
||||
|
||||
const cacheStatusText = cacheStatus ? " | [Cache]" : ""
|
||||
|
||||
await redis.close()
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
title: "Top members of " + guildName,
|
||||
|
||||
Reference in New Issue
Block a user