Skip to content

Commit cbd9c21

Browse files
committed
3.2.1
1 parent 7ad8751 commit cbd9c21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+113
-113
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iris-utilities",
3-
"version": "3.2.0",
3+
"version": "3.2.1",
44
"description": "",
55
"author": "MidSpike",
66
"keywords": [],

src/common/app/client_interactions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export class ClientCommandHelper {
166166

167167
if (!is_valid_environment && interaction.isRepliable()) {
168168
await interaction.reply({
169-
ephemeral: true,
169+
flags: Discord.MessageFlags.Ephemeral,
170170
embeds: [
171171
CustomEmbed.from({
172172
color: CustomEmbed.Colors.Violet,
@@ -234,7 +234,7 @@ export class ClientCommandHelper {
234234
if (highest_access_level_for_user < required_access_level) {
235235
if (reply_to_interaction && interaction.isRepliable()) {
236236
interaction.reply({
237-
ephemeral: true,
237+
flags: Discord.MessageFlags.Ephemeral,
238238
embeds: [
239239
CustomEmbed.from({
240240
color: CustomEmbed.Colors.Violet,
@@ -286,7 +286,7 @@ export class ClientCommandHelper {
286286

287287
if (interaction.isRepliable()) {
288288
interaction.reply({
289-
ephemeral: true,
289+
flags: Discord.MessageFlags.Ephemeral,
290290
embeds: [
291291
CustomEmbed.from({
292292
color: CustomEmbed.Colors.Violet,

src/interactions/application_commands/chat_input/bot_super/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default new ClientInteraction<Discord.ChatInputApplicationCommandData>({
3535
if (!interaction.inCachedGuild()) return;
3636
if (!interaction.channel) return;
3737

38-
await interaction.deferReply({ ephemeral: false });
38+
await interaction.deferReply();
3939

4040
await delay(1000);
4141

src/interactions/application_commands/chat_input/donator/voice_commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default new ClientInteraction<Discord.ChatInputApplicationCommandData>({
9494
if (!interaction.inCachedGuild()) return;
9595
if (!interaction.channel) return;
9696

97-
await interaction.deferReply({ ephemeral: false });
97+
await interaction.deferReply();
9898

9999
switch (interaction.options.getSubcommandGroup(true)) {
100100
case 'listen_to_me': {

src/interactions/application_commands/chat_input/fun_stuff/8ball.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default new ClientInteraction<Discord.ChatInputApplicationCommandData>({
6666
if (!interaction.inCachedGuild()) return;
6767
if (!interaction.channel) return;
6868

69-
await interaction.deferReply({ ephemeral: false });
69+
await interaction.deferReply();
7070

7171
const question = interaction.options.getString('question', true);
7272

src/interactions/application_commands/chat_input/fun_stuff/akinator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default new ClientInteraction<Discord.ChatInputApplicationCommandData>({
129129
if (!interaction.inCachedGuild()) return;
130130
if (!interaction.channel) return;
131131

132-
await interaction.deferReply({ ephemeral: false });
132+
await interaction.deferReply();
133133

134134
const user_consents_to_potential_nsfw = await requestPotentialNotSafeForWorkContentConsent(interaction.channel!, interaction.user);
135135
if (!user_consents_to_potential_nsfw) return await interaction.deleteReply();
@@ -167,7 +167,7 @@ export default new ClientInteraction<Discord.ChatInputApplicationCommandData>({
167167

168168
if (button_interaction.user.id !== interaction.user.id) {
169169
await button_interaction.followUp({
170-
ephemeral: true,
170+
flags: Discord.MessageFlags.Ephemeral,
171171
embeds: [
172172
CustomEmbed.from({
173173
color: CustomEmbed.Colors.Red,

src/interactions/application_commands/chat_input/fun_stuff/cards.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,13 @@ async function updateMessageWithNewContent(discord_client: Discord.Client<true>,
156156
</html>
157157
`;
158158

159-
const image_base64 = await nodeHtmlToImage({
159+
const image_buffer = await nodeHtmlToImage({
160160
type: 'png',
161-
encoding: 'base64',
161+
encoding: 'binary',
162162
html: html_for_image,
163163
waitUntil: 'load',
164-
}) as string;
164+
}) as Buffer;
165165

166-
const image_buffer = Buffer.from(image_base64, 'base64');
167166
const attachment_name = `attachment-${Date.now()}.png`;
168167
const attachment = new Discord.AttachmentBuilder(image_buffer, { name: attachment_name });
169168

@@ -209,7 +208,7 @@ export default new ClientInteraction<Discord.ChatInputApplicationCommandData>({
209208
if (!interaction.inCachedGuild()) return;
210209
if (!interaction.channel) return;
211210

212-
await interaction.deferReply({ ephemeral: false });
211+
await interaction.deferReply();
213212

214213
const user_consents_to_potential_nsfw = await requestPotentialNotSafeForWorkContentConsent(interaction.channel, interaction.user);
215214
if (!user_consents_to_potential_nsfw) return await interaction.deleteReply();

src/interactions/application_commands/chat_input/fun_stuff/color.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default new ClientInteraction<Discord.ChatInputApplicationCommandData>({
7272
if (!interaction.isChatInputCommand()) return;
7373
if (!interaction.channel) return;
7474

75-
await interaction.deferReply({ ephemeral: false });
75+
await interaction.deferReply();
7676

7777
const hex = interaction.options.getString('hex', true);
7878

src/interactions/application_commands/chat_input/fun_stuff/flip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default new ClientInteraction<Discord.ChatInputApplicationCommandData>({
7070
if (!interaction.inCachedGuild()) return;
7171
if (!interaction.channel) return;
7272

73-
await interaction.deferReply({ ephemeral: false });
73+
await interaction.deferReply();
7474

7575
const bot_message = await interaction.editReply(await generateMessagePayload(interaction.user));
7676

0 commit comments

Comments
 (0)