Liking cljdoc? Tell your friends :D

discord.extensions.block


block-handler19031clj

(block-handler19031 prefix client message)

block-wordsclj

(block-words words-to-block)
(block-words words-to-block guild)
(block-words words-to-block guild channel)

Easy interface to block a series of words. The number of arguments determines to extent of the block. Simply providing the word will constitute a global block. Providing a guild in addition to a word will block the word only in that guild. Lastly, providing a guild and channel will only block the word in that channel of that guild.

Easy interface to block a series of words. The number of arguments determines to extent of the block.
Simply providing the word will constitute a global block. Providing a guild in addition to a
word will block the word only in that guild. Lastly, providing a guild and channel will only
block the word in that channel of that guild.
raw docstring

block-words-helperclj

(block-words-helper words-to-block guild channel)

Helper function to block a word for a particular channel. After adding the word to list, it will save the settings and update the last-loaded timestamp

Helper function to block a word for a particular channel. After adding the word to list, it will
save the settings and update the last-loaded timestamp
raw docstring

block18895cljmultimethod

(block18895 client message)

Allows you to block words that you don't want appearing in certain contexts.

Available Subcommands: global: Adds words to the global block list for the bot. guild: Adds words to the guild block list for the bot. channel: Adds words to the guild/channel block list for the bot. list: Lists the words blocked in the current channel.

Allows you to block words that you don't want appearing in certain contexts.

Available Subcommands:
	global: Adds words to the global block list for the bot.
	guild: Adds words to the guild block list for the bot.
	channel: Adds words to the guild/channel block list for the bot.
	list: Lists the words blocked in the current channel.
raw docstring

blocked-word-settingsclj


get-blocked-wordsclj

(get-blocked-words guild-id channel-id)

Returns the blocked words for a particular guild and channel combination.

Returns the blocked words for a particular guild and channel combination.
raw docstring

get-settingsclj

(get-settings)

last-loaded-settingsclj


settings-fileclj


settings-fresh?clj

(settings-fresh?)

This function determines whether or not the settings cache is 'fresh'. For the purposes of this application, we define a 'fresh' cache as a cache that has been updated in the last 5 minutes.

This function determines whether or not the settings cache is 'fresh'. For the purposes of this
application, we define a 'fresh' cache as a cache that has been updated in the last 5 minutes.
raw docstring

unblock-wordsclj

(unblock-words words-to-unblock)
(unblock-words words-to-unblock guild)
(unblock-words words-to-unblock guild channel)

Easy interface for unblocking a series of words at any blocking level.

Easy interface for unblocking a series of words at any blocking level.
raw docstring

unblock-words-helperclj

(unblock-words-helper words-to-block guild channel)

Helper function to unblock a word for a particular channel. After adding the word to list, it will save the settings and update the last-loaded timestamp

Helper function to unblock a word for a particular channel. After adding the word to list, it will
save the settings and update the last-loaded timestamp
raw docstring

unblock18960cljmultimethod

(unblock18960 client message)

Unblock words that are currently being blocked.

Available Subcommands: global: Removes words from the global block list guild: Removes words from the guild block list channel: Removes words from the guild/channel block list

Unblock words that are currently being blocked.

Available Subcommands:
	global: Removes words from the global block list
	guild: Removes words from the guild block list
	channel: Removes words from the guild/channel block list
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close