PaymentMethod

Namespace: Discord

Properties

Name

Description

Type

Id

ID of the payment method

ulong

Type

The type of payment method

PaymentMethodType

Invalid

Whether this payment is invalid or not

bool

BillingAddress

The payment method's billing address

BillingAddress

Country

The payment method's country

string

Default

Whether or not this payment method is the default for making transactions on the current user's account

bool

Methods

PurchaseGift

Purchases a gift with the payment method.

Parameters

Name

Description

Type

skuId

The product's sku ID

ulong

subPlanId

The product's plan ID

ulong

expectedAmount

The expected amount of money to pay for it

int

Returns

The gift's code (string)

PurchaseNitroGift

Purchases a nitro gift with the payment method.

Parameters

Name

Description

Type

nitroType

The type of nitro you want to purchase

DiscordNitroSubType

Returns

The gift's code (string)

Last updated