seyfert 3.2.7-dev-17656890690.0 → 3.2.7-dev-18148457259.0

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.
@@ -8,6 +8,7 @@ export declare class MessageShorter extends BaseShorter {
8
8
  edit(messageId: string, channelId: string, { files, ...body }: MessageUpdateBodyRequest): Promise<MessageStructure>;
9
9
  crosspost(messageId: string, channelId: string, reason?: string): Promise<MessageStructure>;
10
10
  delete(messageId: string, channelId: string, reason?: string): Promise<void>;
11
+ raw(messageId: string, channelId: string, force?: boolean): Promise<import("../../types").APIMessage | import("../../cache/resources/messages").APIMessageResource>;
11
12
  fetch(messageId: string, channelId: string, force?: boolean): Promise<MessageStructure>;
12
13
  purge(messages: string[], channelId: string, reason?: string): Promise<void | undefined>;
13
14
  thread(channelId: string, messageId: string, options: RESTPostAPIChannelMessagesThreadsJSONBody & {
@@ -55,6 +55,14 @@ class MessageShorter extends base_1.BaseShorter {
55
55
  this.client.components.deleteValue(messageId, 'messageDelete');
56
56
  });
57
57
  }
58
+ async raw(messageId, channelId, force = false) {
59
+ if (!force) {
60
+ const message = await this.client.cache.messages?.raw(messageId);
61
+ if (message)
62
+ return message;
63
+ }
64
+ return this.client.proxy.channels(channelId).messages(messageId).get();
65
+ }
58
66
  async fetch(messageId, channelId, force = false) {
59
67
  if (!force) {
60
68
  const message = await this.client.cache.messages?.get(messageId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "3.2.7-dev-17656890690.0",
3
+ "version": "3.2.7-dev-18148457259.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",