Skip to content

Commit

Permalink
feat(InteractionResponses): add deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Jun 18, 2024
1 parent 003b17e commit 552f312
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

const { deprecate } = require('node:util');
const { isJSONEncodable } = require('@discordjs/util');
const { InteractionResponseType, MessageFlags, Routes, InteractionType } = require('discord-api-types/v10');
const { DiscordjsError, ErrorCodes } = require('../../errors');
Expand Down Expand Up @@ -338,4 +339,10 @@ class InteractionResponses {
}
}

InteractionResponses.prototype.sendPremiumRequired = deprecate(
InteractionResponses.prototype.sendPremiumRequired,
// eslint-disable-next-line max-len
'InteractionResponses#sendPremiumRequired() is deprecated. Sending a premium-style button is the new Discord behaviour.',
);

module.exports = InteractionResponses;

0 comments on commit 552f312

Please sign in to comment.