File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
addons/source-python/packages/source-python/messages Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,17 @@ class _DialogBase(object):
4444 time = 0
4545 title = ''
4646
47- def send (self , * args , ** tokens ):
48- """Send the Dialog message to the appropriate recipients."""
47+ def send (self , * player_indexes , ** tokens ):
48+ """Send the Dialog message to the appropriate recipients.
49+
50+ :param player_indexes: Values can be a player index, multiple player
51+ indexes (star args),
52+ a :class:`filters.players.PlayerIter` instance,
53+ or a :class:`filters.recipients.RecipientFilter` instance.
54+ :param tokens: Keyword arguments used to replace values in messages.
55+ """
4956 # Get a recipient filter of the given users
50- recipients = RecipientFilter (* args )
57+ recipients = RecipientFilter (* player_indexes )
5158
5259 # Get the KeyValues instance
5360 keyvalues = KeyValues (self .message_type .name .lower ())
You can’t perform that action at this time.
0 commit comments