MCPcopy Create free account
hub / github.com/EnokiUN/voltage / fetch_message

Method fetch_message

voltage/internals/http.py:484–495  ·  view source on GitHub ↗

Gets a message from a channel. Parameters ---------- channel_id: :class:`str` The id of the channel. message_id: :class:`str` The id of the message.

(self, channel_id: str, message_id: str)

Source from the content-addressed store, hash-verified

482 return await self.request("GET", f"channels/{channel_id}/messages", params=data)
483
484 async def fetch_message(self, channel_id: str, message_id: str) -> MessagePayload:
485 """
486 Gets a message from a channel.
487
488 Parameters
489 ----------
490 channel_id: :class:`str`
491 The id of the channel.
492 message_id: :class:`str`
493 The id of the message.
494 """
495 return await self.request("GET", f"channels/{channel_id}/messages/{message_id}")
496
497 async def edit_message(
498 self,

Callers 3

handle_messagereactMethod · 0.45
handle_messageunreactMethod · 0.45

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected