nexushub-commands 1.6.1 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -171,7 +171,7 @@ tslib_1.__decorate([
|
|
|
171
171
|
inline_keyboard: [
|
|
172
172
|
...(allowedMethods.includes('card') ? [[{ text: '💳 Банковская карта', command: DepositCommand, payload: { method: 'card' } }]] : []),
|
|
173
173
|
[{ text: '🪙 Криптовалюта', command: DepositCommand, payload: { method: 'cryptowallet' } }],
|
|
174
|
-
[{ text: '🎫 Промокод', command: DepositByPromocode_command_1.DepositByPromocodeCommand
|
|
174
|
+
[{ text: '🎫 Промокод', command: DepositByPromocode_command_1.DepositByPromocodeCommand }],
|
|
175
175
|
],
|
|
176
176
|
},
|
|
177
177
|
});
|
package/package.json
CHANGED
|
@@ -50,7 +50,7 @@ export class DepositCommand extends Command {
|
|
|
50
50
|
inline_keyboard: [
|
|
51
51
|
...(allowedMethods.includes('card') ? [[{ text: '💳 Банковская карта', command: DepositCommand, payload: { method: 'card' } }]] : []),
|
|
52
52
|
[{ text: '🪙 Криптовалюта', command: DepositCommand, payload: { method: 'cryptowallet' } }],
|
|
53
|
-
[{ text: '🎫 Промокод', command: DepositByPromocodeCommand
|
|
53
|
+
[{ text: '🎫 Промокод', command: DepositByPromocodeCommand }],
|
|
54
54
|
],
|
|
55
55
|
},
|
|
56
56
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { Command, CommandArgument, stringValidator } from 'evogram';
|
|
1
|
+
import { Command, CommandArgument, CommandD, stringValidator } from 'evogram';
|
|
2
2
|
import { CommandContext } from 'evogram/lib/contexts';
|
|
3
3
|
import { Client } from '../../Client';
|
|
4
4
|
|
|
5
|
+
@CommandD('promocode')
|
|
5
6
|
export class DepositByPromocodeCommand extends Command {
|
|
6
7
|
public async execute(
|
|
7
8
|
context: CommandContext,
|
|
9
|
+
|
|
8
10
|
@CommandArgument(
|
|
9
11
|
{
|
|
10
12
|
name: 'promocode',
|