mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: blitz stars defer compat
This commit is contained in:
1 parent
d3c2c121dc
commit
fce16a6975
3 files changed
+5
-12
No files matched your search
@@ -116,8 +116,7 @@ export default {
|
||||
|
||||
const eligible = issues.length === 0;
|
||||
|
||||
await interaction
|
||||
.reply({
|
||||
await interaction.editReply({
|
||||
embeds: [
|
||||
poweredByBlitzStars(
|
||||
new EmbedBuilder()
|
||||
@@ -134,18 +133,12 @@ export default {
|
||||
: `${data.nickname}'s shortcomings for ${
|
||||
CLANS[clan].name
|
||||
} (${
|
||||
clan === 'sklld'
|
||||
? '30 days stats'
|
||||
: 'career stats'
|
||||
clan === 'sklld' ? '30 days stats' : 'career stats'
|
||||
}):\n\n${issues.join('\n')}`
|
||||
}\n\n${blitzLinks(data)}`,
|
||||
),
|
||||
),
|
||||
],
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log('nooooooooooooooooooooooooo');
|
||||
console.log(e);
|
||||
});
|
||||
|
||||
console.log(
|
||||
|
||||
@@ -62,7 +62,7 @@ export default {
|
||||
const stats =
|
||||
period === 'career' ? data.statistics : data[`period${period}d`];
|
||||
|
||||
await interaction.reply({
|
||||
await interaction.editReply({
|
||||
embeds: [
|
||||
poweredByBlitzStars(
|
||||
new EmbedBuilder()
|
||||
|
||||
@@ -13,10 +13,10 @@ export default async function getBlitzStarsAccount(
|
||||
name: string,
|
||||
callback: (account: PlayerStatistics) => void,
|
||||
) {
|
||||
await interaction.deferReply();
|
||||
if (!interaction.deferred) await interaction.deferReply();
|
||||
|
||||
async function notTracked() {
|
||||
await interaction.reply({
|
||||
await interaction.editReply({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setTitle('No data to display')
|
||||
|
||||
Reference in new issue
Block a user