diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-26 16:12:11 +0000 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-26 16:12:11 +0000 |
commit | 973bbebfd0a47b0b36d19fccf6a882e971beaaa5 (patch) | |
tree | 39dc606816ed198735a7ed0669a195f64e6a06c6 /src/lib/extensions/discord.js/BushButtonInteraction.ts | |
parent | 00ad00734ddb2c2fce8de8efcc010181c9ce1821 (diff) | |
parent | a9ac478ee06f9567f3fde73f777da88c6b876c4f (diff) | |
download | tanzanite-973bbebfd0a47b0b36d19fccf6a882e971beaaa5.tar.gz tanzanite-973bbebfd0a47b0b36d19fccf6a882e971beaaa5.tar.bz2 tanzanite-973bbebfd0a47b0b36d19fccf6a882e971beaaa5.zip |
Merge branch 'master' of https://github.com/NotEnoughUpdates/bush-bot-3.0
Diffstat (limited to 'src/lib/extensions/discord.js/BushButtonInteraction.ts')
-rw-r--r-- | src/lib/extensions/discord.js/BushButtonInteraction.ts | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/lib/extensions/discord.js/BushButtonInteraction.ts b/src/lib/extensions/discord.js/BushButtonInteraction.ts index b7ad77c..e72e277 100644 --- a/src/lib/extensions/discord.js/BushButtonInteraction.ts +++ b/src/lib/extensions/discord.js/BushButtonInteraction.ts @@ -1,5 +1,5 @@ import type { BushClient, BushGuild, BushGuildMember, BushGuildTextBasedChannel, BushTextBasedChannel, BushUser } from '#lib'; -import type { APIInteractionGuildMember } from 'discord-api-types'; +import type { APIInteractionGuildMember } from 'discord-api-types/v9'; import { ButtonInteraction, type CacheType, type CacheTypeReducer } from 'discord.js'; import type { RawMessageButtonInteractionData } from 'discord.js/typings/rawDataTypes'; @@ -7,14 +7,6 @@ import type { RawMessageButtonInteractionData } from 'discord.js/typings/rawData * Represents a button interaction. */ export class BushButtonInteraction<Cached extends CacheType = CacheType> extends ButtonInteraction<Cached> { - public declare readonly channel: CacheTypeReducer< - Cached, - BushGuildTextBasedChannel | null, - BushGuildTextBasedChannel | null, - BushGuildTextBasedChannel | null, - BushTextBasedChannel | null - >; - public declare readonly guild: CacheTypeReducer<Cached, BushGuild, null>; public declare member: CacheTypeReducer<Cached, BushGuildMember, APIInteractionGuildMember>; public declare user: BushUser; @@ -22,3 +14,14 @@ export class BushButtonInteraction<Cached extends CacheType = CacheType> extends super(client, data); } } + +export interface BushButtonInteraction<Cached extends CacheType = CacheType> { + get channel(): CacheTypeReducer< + Cached, + BushGuildTextBasedChannel | null, + BushGuildTextBasedChannel | null, + BushGuildTextBasedChannel | null, + BushTextBasedChannel | null + >; + get guild(): CacheTypeReducer<Cached, BushGuild, null>; +} |