RedeemableDiscordGift

Namespace: Discord

Inherits from

pageDiscordGift

Properties

Name

Description

Type

Code

The gift's code

string

ExpiresAt

A timestamp indicating when the code will expire

DateTime

Redeemed

Whether or not the gift has already been redeemed

bool

Uses

The amount of times the gift has been redeemed

uint

MaxUses

Max amount of uses for the gift

uint

Methods

Redeem

Redeems the gift.

Parameters

Name

Description

Type

channelId

You can optionally supply the channel this gift was redeemed from

ulong?

Revoke

Revokes the gift's current code.

Last updated