Commit 9ca7082 1 parent b890958 commit 9ca7082 Copy full SHA for 9ca7082
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- export { EventEmitter } from 'https://deno.land/x/ event@2.0.0/mod.ts '
1
+ export { EventEmitter } from 'jsr:@denosaurs/ event@2.0.2 '
2
2
export { decompress_with as unzlib } from 'npm:@evan/wasm@0.0.95/target/zlib/node.mjs'
3
3
export { walk } from 'jsr:@std/fs@0.217/walk'
4
4
export { join } from 'node:path'
Original file line number Diff line number Diff line change @@ -204,10 +204,10 @@ export class Webhook {
204
204
}
205
205
}
206
206
) : Promise < Webhook > {
207
- await this . client ?. rest . patch (
207
+ await this . rest . patch (
208
208
WEBHOOK_MESSAGE (
209
209
this . id ,
210
- ( this . token ?? this . client . token ) as string ,
210
+ ( this . token ?? this . client ? .token ) as string ,
211
211
typeof message === 'string' ? message : message . id
212
212
) ,
213
213
data
@@ -216,10 +216,10 @@ export class Webhook {
216
216
}
217
217
218
218
async deleteMessage ( message : string | Message ) : Promise < Webhook > {
219
- await this . client ?. rest . delete (
219
+ await this . rest . delete (
220
220
WEBHOOK_MESSAGE (
221
221
this . id ,
222
- ( this . token ?? this . client . token ) as string ,
222
+ ( this . token ?? this . client ? .token ) as string ,
223
223
typeof message === 'string' ? message : message . id
224
224
)
225
225
)
You can’t perform that action at this time.
0 commit comments