Liking cljdoc? Tell your friends :D

discord.extensions.block


block-handler18163clj

(block-handler18163 prefix client message)
source

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.
sourceraw 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
sourceraw docstring

block18027cljmultimethod

(block18027 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.
sourceraw docstring

blocked-word-settingsclj

source

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.
sourceraw docstring

get-settingsclj

(get-settings)
source

last-loaded-settingsclj

source

settings-fileclj

source

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.
sourceraw 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.
sourceraw 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
sourceraw docstring

unblock18092cljmultimethod

(unblock18092 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
sourceraw docstring

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

× close