MCPcopy Create free account

hub / github.com/EnokiUN/voltage / functions

Functions450 in github.com/EnokiUN/voltage

↓ 45 callersMethodrequest
Makes a request to the API. Parameters ---------- method: Literal["GET", "POST", "PUT", "DELETE", "PATCH"]
voltage/internals/http.py:52
↓ 26 callersMethoddispatch
(self, event: str, *args, **kwargs)
voltage/ext/commands/client.py:241
↓ 12 callersMethodnew_with_flags
Creates a new instance of this class with the given flags. Parameters ---------- flags: :class:`int` The
voltage/flag.py:57
↓ 12 callersMethodreply
Replies to the message. Parameters ---------- content: Optional[:class:`str`] The content of the message.
voltage/message.py:235
↓ 11 callersMethodget_user
Gets a user from the cache by ID, mention or name. Parameters ---------- user: :class:`str` The ID, ment
voltage/client.py:285
↓ 9 callersMethodget_user
Gets a user from the cache. Parameters ---------- user_id: str Returns ------- :class:`User
voltage/internals/cache.py:138
↓ 8 callersMethodget_server
Gets a server from the cache. Parameters ---------- server_id: :class:`str` The id of the server to get.
voltage/internals/cache.py:122
↓ 8 callersMethodto_dict
A function that returns an embed as a dict for api purposes. You shouldn't run this method yourself. Returns -------
voltage/embed.py:226
↓ 7 callersMethodget_channel
Gets a channel from the cache. Parameters ---------- channel_id: :class:`str` The id of the channel to g
voltage/internals/cache.py:88
↓ 7 callersMethodget_id
Get the ID of the messageable object's channel. Returns ------- :class:`str` The ID of the messageable o
voltage/messageable.py:105
↓ 6 callersMethod_update
(self, data: OnUserUpdatePayload)
voltage/user.py:227
↓ 6 callersMethodadd_user
Creates a user object and adds it to the cache if it doesn't exist already. Parameters ---------- data: :class:`User
voltage/internals/cache.py:347
↓ 6 callersFunctionget
(base: Iterable[T], predicate: Callable[[T], bool])
voltage/utils.py:11
↓ 5 callersMethod__init__
(self, data: ChannelPayload, cache: CacheHandler, server_id: Optional[str] = None)
voltage/channels.py:52
↓ 5 callersMethodadd_channel
Creates a channel object and adds it to the cache if it doesn't exist already. Parameters ---------- data: :class:`C
voltage/internals/cache.py:249
↓ 5 callersMethodget_channel
Gets a channel by its ID. Parameters ---------- channel_id: str The ID of the channel to get. R
voltage/server.py:293
↓ 5 callersMethodget_role
Gets a role by its ID. Parameters ---------- role_id: str The ID of the role to get. Returns
voltage/server.py:325
↓ 5 callersMethodrun
Run the client. Parameters ---------- token: :class:`str` The bot token. bot: :class:`bool`
voltage/client.py:145
↓ 5 callersMethodsearch
Search for messages in the messageable object's channel. Parameters ---------- query: :class:`str` The q
voltage/messageable.py:232
↓ 4 callersMethodadd_member
Creates a member object and adds it to the cache if it doesn't exist already. Parameters ---------- server_id: :clas
voltage/internals/cache.py:300
↓ 4 callersMethodadd_message
Creates a message object and adds it to the cache if it doesn't exist already. Parameters ---------- data: :class:`M
voltage/internals/cache.py:227
↓ 4 callersMethodconvert_arg
(self, arg: Parameter, given: str, context: CommandContext)
voltage/ext/commands/command.py:169
↓ 4 callersMethodedit_member
Edits a member. Parameters ---------- server_id: :class:`str` The id of the server. member_id: :
voltage/internals/http.py:757
↓ 4 callersMethodget_channel
Gets a channel from the cache by ID. Parameters ---------- channel_id: :class:`str` The ID of the channe
voltage/client.py:301
↓ 4 callersMethodget_member
Gets a member from the cache. Parameters ---------- server_id: :class:`str` The id of the server the mem
voltage/internals/cache.py:104
↓ 4 callersMethodget_message
Gets a message from the cache. Parameters ---------- message_id: :class:`str` The id of the message to g
voltage/internals/cache.py:72
↓ 4 callersMethodget_server
Gets a server from the cache by ID. Parameters ---------- server_id: :class:`str` The ID of the server.
voltage/client.py:320
↓ 3 callersMethodfetch_message
Gets a message from a channel. Parameters ---------- channel_id: :class:`str` The id of the channel.
voltage/internals/http.py:484
↓ 3 callersMethodget_api_info
query_node but better.
voltage/internals/http.py:147
↓ 3 callersMethodget_file_binary
Gets the binary of a file. Parameters ---------- url: :class:`str` The url of the file.
voltage/internals/http.py:127
↓ 3 callersMethodget_id
(self)
voltage/user.py:178
↓ 3 callersMethodsend
Send a message to the messageable object's channel. Parameters ---------- content: Optional[:class:`str`]
voltage/messageable.py:116
↓ 2 callersMethod__new__
(cls, *args, **kwargs)
voltage/ext/commands/cog.py:138
↓ 2 callersMethod_caclulate_perms
(self)
voltage/member.py:148
↓ 2 callersMethodadd_command
Adds a command to the client. Parameters ---------- command: :class:`Command` The command to add.
voltage/ext/commands/client.py:87
↓ 2 callersMethodadd_extension
Adds an extension to the client. Parameters ---------- path: :class:`str` The path to the extension as a python d
voltage/ext/commands/client.py:143
↓ 2 callersMethodconnect
Whether the connect permission is granted.
voltage/permissions.py:139
↓ 2 callersMethodconvert
Convert a string into an object. This method should be overridden by subclasses.
voltage/ext/commands/converters.py:21
↓ 2 callersFunctioncreate_embed
A function that creates an embed from a dict. You shouldn't run this method yourself. Parameters ---------- data: :class:`EmbedP
voltage/embed.py:149
↓ 2 callersMethoddelete
Deletes the role.
voltage/roles.py:90
↓ 2 callersMethoddelete_message
Deletes a message. Parameters ---------- channel_id: :class:`str` The id of the channel. message
voltage/internals/http.py:526
↓ 2 callersMethodend_typing
Stop sending a typing indicator to the messageable object's channel.
voltage/messageable.py:305
↓ 2 callersMethodfetch_messages
Gets a list of messages from a channel. Parameters ---------- channel_id: str The id of the channel.
voltage/internals/http.py:440
↓ 2 callersMethodfetch_self
Gets info about the bot.
voltage/internals/http.py:204
↓ 2 callersMethodfetch_user
Gets info about a user. Parameters ---------- user_id: :class:`str` The id of the user.
voltage/internals/http.py:155
↓ 2 callersMethodget_dm_channel
Gets a dm channel from the cache. Parameters ---------- dm_channel_id: :class:`str` The id of the dm cha
voltage/internals/cache.py:153
↓ 2 callersMethodget_member
Gets a member by their ID, a mention, their name or nickname. Parameters ---------- member: :class:`str`
voltage/server.py:309
↓ 2 callersMethodhandle_embed
Handles an embed. Parameters ---------- embed_data: Union[:class:`SendableEmbedPayload`, :class:`SendableEmbed`]
voltage/internals/http.py:1012
↓ 2 callersMethodinvoke
(self, context: CommandContext, prefix: str)
voltage/ext/commands/command.py:184
↓ 2 callersMethodkeep_typing
(self)
voltage/messageable.py:30
↓ 2 callersMethodpopulate_server
Adds all the members of a server to the server object present in the cache. Parameters ---------- server_id: :class:
voltage/internals/cache.py:392
↓ 2 callersMethodsend_message
Sends a message to a channel. Parameters ---------- channel_id: :class:`str` The id of the channel.
voltage/internals/http.py:370
↓ 2 callersMethodunban_member
Unbans a member. Parameters ---------- server_id: :class:`str` The id of the server. member_id:
voltage/internals/http.py:838
↓ 1 callersMethod__eq__
(self, other: object)
voltage/flag.py:75
↓ 1 callersMethod__get__
(self: FV, instance: Optional[FB], owner: Type[FB])
voltage/flag.py:25
↓ 1 callersMethod_add_member
A function used by the websocket handler to add a member to the server object. You ***really*** shouldn't call this function manuall
voltage/server.py:207
↓ 1 callersMethod_has_flag
(self, flag: int)
voltage/flag.py:124
↓ 1 callersMethod_process_next
(self)
voltage/messageable.py:58
↓ 1 callersMethod_set_flag
(self, flag: int, value: bool)
voltage/flag.py:127
↓ 1 callersMethodadd_cog
Adds a cog to the client. Parameters ---------- cog: :class:`Cog` The cog to add.
voltage/ext/commands/client.py:105
↓ 1 callersMethodadd_command
Adds a command to the cog. idk why you're doing thit but consider using the decorator for this /shrug. Parameters -
voltage/ext/commands/cog.py:74
↓ 1 callersMethodadd_dm_channel
Creates a dm channel object and adds it to the cache if it doesn't exist already. Parameters ---------- data: :class
voltage/internals/cache.py:372
↓ 1 callersMethodadd_reaction
(self, channel_id: str, message_id: str, emoji_id: str)
voltage/internals/http.py:424
↓ 1 callersMethodadd_recepient
Adds a user to the group direct messages channel. Parameters ---------- user: :class:`User` The user to add to th
voltage/channels.py:250
↓ 1 callersMethodadd_server
Creates a server object and adds it to the cache if it doesn't exist already. Parameters ---------- data: :class:`Se
voltage/internals/cache.py:326
↓ 1 callersMethodauthorize
Sends an authorization request to the websocket api.
voltage/internals/ws.py:76
↓ 1 callersMethodban_member
Bans a member. Parameters ---------- server_id: :class:`str` The id of the server. member_id: :c
voltage/internals/http.py:820
↓ 1 callersMethodbegin_typing
Starts typing in a channel.
voltage/internals/ws.py:388
↓ 1 callersFunctionbuild_lookup_table
(env)
docs/source/extensions/attributetable.py:149
↓ 1 callersFunctioncheck
A decorator which creates a check from a function.
voltage/ext/commands/check.py:44
↓ 1 callersMethodcheck
(self, context: CommandContext)
voltage/ext/commands/check.py:30
↓ 1 callersFunctionclass_results_to_node
(key, elements)
docs/source/extensions/attributetable.py:258
↓ 1 callersMethodclose_channel
Depending on the type of channel, deleted it if it's a server channel, leaves it if it's a group channel and closes it if it's a dm.
voltage/internals/http.py:312
↓ 1 callersMethodcog_dispatch
(self, event: str, cog: Cog, *args, **kwargs)
voltage/ext/commands/client.py:227
↓ 1 callersMethodcog_raw_dispatch
(self, event: str, cog: Cog, payload: dict[Any, Any])
voltage/ext/commands/client.py:261
↓ 1 callersFunctioncreate_channel
Creates a channel based on the data provided. Parameters ---------- data: :class:`ChannelPayload` The data to create the cha
voltage/channels.py:381
↓ 1 callersMethoddelete
Deletes the message.
voltage/message.py:229
↓ 1 callersMethoddelete_all_reaction
( self, channel_id: str, message_id: str, )
voltage/internals/http.py:433
↓ 1 callersMethoddelete_invite
Deletes an invite. Parameters ---------- invite_code: :class:`str` The code of the invite.
voltage/internals/http.py:982
↓ 1 callersMethoddelete_reaction
(self, channel_id: str, message_id: str, emoji_id: str)
voltage/internals/http.py:427
↓ 1 callersMethoddelete_role
Deletes a role. Parameters ---------- server_id: :class:`str` The id of the server. role_id: :cl
voltage/internals/http.py:958
↓ 1 callersMethoddelete_server
Deletes a server if you own it, otherwise leave it. Parameters ---------- server_id: :class:`str` The id
voltage/internals/http.py:690
↓ 1 callersMethodedit_channel
Edits a channel. Parameters ---------- channel_id: :class:`str` The id of the channel. name: Opt
voltage/internals/http.py:271
↓ 1 callersMethodedit_message
Edits a message. Parameters ---------- channel_id: :class:`str` The id of the channel. message_i
voltage/internals/http.py:497
↓ 1 callersMethodedit_role
Edits a role. Parameters ---------- server_id: :class:`str` The id of the server. role_id: :clas
voltage/internals/http.py:911
↓ 1 callersMethodedit_self
Edits the bot's profile. Parameters ---------- status: Optional[Dict[Literal["text", "presence"], Union[:class:`str`
voltage/internals/http.py:166
↓ 1 callersMethodedit_server
Edits a server. Parameters ---------- server_id: :class:`str` The id of the server. name: Option
voltage/internals/http.py:635
↓ 1 callersMethodfetch_channel
Gets info about a channel. Parameters ---------- channel_id: :class:`str` The id of the channel.
voltage/internals/http.py:260
↓ 1 callersMethodfetch_dm_channel
Fetches a dm channel from the api if it doesn't exist in the cache. Parameters ---------- user_id: :class:`str`
voltage/internals/cache.py:209
↓ 1 callersMethodfetch_members
Gets the members of a server. Parameters ---------- server_id: :class:`str` The id of the server.
voltage/internals/http.py:809
↓ 1 callersMethodfetch_message
Fetch a message from the messageable object's channel. Parameters ---------- message_id: :class:`str` Th
voltage/messageable.py:179
↓ 1 callersMethodfetch_profile
A method which fetches a user's profile. Returns ------- :class:`UserProfile` The user's profile.
voltage/user.py:212
↓ 1 callersMethodfetch_user_profile
Gets the profile of a user. Parameters ---------- user_id: :class:`str` The id of the user.
voltage/internals/http.py:210
↓ 1 callersMethodfrom_partial
A utility function that creates an Invite object from a partial payload. Parameters ---------- code: :class:`str`
voltage/invites.py:71
↓ 1 callersFunctionget_class_results
(lookup, modulename, name, fullname)
docs/source/extensions/attributetable.py:203
↓ 1 callersFunctionget_extensions_from_dir
Gets all files that end with ``.py`` in a directory and returns a python dotpath.
voltage/ext/commands/client.py:19
↓ 1 callersFunctionget_file_from_url
Returns a file object from the supplied URL. Parameters ---------- http: :class:`HTTPHandler` The HTTP handler to use. u
voltage/file.py:10
↓ 1 callersMethodget_id
(self)
voltage/channels.py:64
↓ 1 callersMethodget_prefix
( self, message: Message, prefix: Union[str, list[str], Callable[[Message, CommandsCli
voltage/ext/commands/client.py:70
↓ 1 callersMethodhandle_attachment
Handles an attachment. Parameters ---------- attachment_data: Union[:class:`str`, :class:`File`] The att
voltage/internals/http.py:993
next →1–100 of 450, ranked by callers